Skip to content

Commit

Permalink
Merge pull request #2298 from bitfriend/chat-read-receipt
Browse files Browse the repository at this point in the history
[smallfix] Miscellaneous fixes
  • Loading branch information
bitfriend authored Oct 22, 2024
2 parents 4366081 + 3851f47 commit 157cf30
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/lib/features/chat/pages/sub_chats_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class SubChatsPage extends ConsumerWidget {
final roomInfo = roomEntry.$1;
final roomId = roomEntry.$2;
if (roomInfo != null) {
// we don't have this room yet, need to show via room hierarchy
// we dont have this room yet, need to show via room hierarchy
final parentId = spaceId;
return RoomHierarchyCard(
key: Key('subchat-list-item-$roomId'),
Expand Down
2 changes: 1 addition & 1 deletion app/lib/features/spaces/pages/sub_spaces_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class SubSpacesPage extends ConsumerWidget {
final roomInfo = roomEntry.$1;
final roomId = roomEntry.$2;
if (roomInfo != null) {
// we don't have this room yet, need to show via room hierarchy
// we dont have this room yet, need to show via room hierarchy
final parentId = spaceId;
return RoomHierarchyCard(
key: Key('subspace-list-item-$roomId'),
Expand Down
4 changes: 2 additions & 2 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
"@deleteTarget": {},
"deleteNewsDraftTitle": "Delete draft?",
"@deleteNewsDraftTitle": {},
"deleteNewsDraftText": "Are you sure you want to delete this draft? This can't be undone.",
"deleteNewsDraftText": "Are you sure you want to delete this draft? This cant be undone.",
"@deleteNewsDraftText": {},
"deleteDraftBtn" : "Delete draft",
"@deleteDraftBtn" : {},
Expand Down Expand Up @@ -875,7 +875,7 @@
"@pleaseEnterEventName": {},
"pleaseFirstSelectASpace": "Please first select a space",
"@pleaseFirstSelectASpace": {},
"errorProcessingSlide": "We couldn't process slide {slideIdx}: {error}",
"errorProcessingSlide": "We couldnt process slide {slideIdx}: {error}",
"@errorProcessingSlide": {},
"pleaseProvideEmailAddressToAdd": "Please provide the email address you’d like to add",
"@pleaseProvideEmailAddressToAdd": {},
Expand Down
2 changes: 1 addition & 1 deletion app/lib/router/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Future<String?> forwardRedirect(

final room = await client.room(roomId);
if (!room.isJoined()) {
// we haven't joined yet or have been kicked
// we havent joined yet or have been kicked
// either way, we are to be shown the thing on the activities page
return state.namedLocation(
Routes.activities.name,
Expand Down
4 changes: 2 additions & 2 deletions native/acter/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ fn setup_x86_64_android_workaround() {
"Unsupported OS. You must use either Linux, MacOS or Windows to build the crate."
),
};
const DEFAULT_CLANG_VERSION: &str = "18";
const DEFAULT_CLANG_VERSION: &str = "18"; // ndk v27.2.12479018 uses clang v18
let clang_version =
std::env::var("NDK_CLANG_VERSION").unwrap_or_else(|_| DEFAULT_CLANG_VERSION.to_owned());
let linux_x86_64_lib_dir = format!(
"toolchains/llvm/prebuilt/{build_os}-x86_64/lib/clang/{clang_version}/lib/linux/"
);
let full_path = format!("{android_ndk_home}/{linux_x86_64_lib_dir}");
if !std::fs::exists(&full_path).unwrap() {
panic!("`clang_rt.builtins-x86_64-android` includes not found. `{full_path}` doesn't exist. Please adjust `$ANDROID_NDK_HOME` and/or `$NDK_CLANG_VERSION` to fix.")
panic!("`clang_rt.builtins-x86_64-android` includes not found. `{full_path}` doesnt exist. Please adjust `$ANDROID_NDK_HOME` and/or `$NDK_CLANG_VERSION` to fix.")
}
println!("cargo:rustc-link-search={full_path}");
println!("cargo:rustc-link-lib=static=clang_rt.builtins-x86_64-android");
Expand Down
4 changes: 2 additions & 2 deletions native/core/src/events/settings/space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ pub type EventsSettings = SimpleSettingWithTurnOff;

/// Backwards compatibility note:
///
/// In an earlier version, we agreed that if pins, news and events hadn't changed,
/// we'd assume they are activated. Even switching the default today means, we'd
/// In an earlier version, we agreed that if pins, news and events hadnt changed,
/// wed assume they are activated. Even switching the default today means, wed
/// change that behavior for all where at least _some_ had been changed. Thus, we
/// are keeping that behavior but _recommend_ using `off` to explicitly set
/// the right behavior up for all future cases.
Expand Down
2 changes: 1 addition & 1 deletion native/core/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ mod tests {

assert_eq!(inner_model, model);

// now let's redact this model;
// now lets redact this model;

let redaction: UnsignedRoomRedactionEvent = from_value(json!({
"event_id" : format!("{model_id}:redacted"),
Expand Down
2 changes: 1 addition & 1 deletion native/file-event-cache/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Because the data is store specific, the files stored will also be specific to th

This is 100% backwards compatible with the `matrix-sdk-store-media-cache-wrapper` file implementation. Passing the proper state store

The test suite is run against using `matrix-sdk-sqlite` `SqliteStore`. Though there is no reason to believe it shouldn't work with any store implementing the `StateStore`-interface, this is the only one it has been tested with successfully.
The test suite is run against using `matrix-sdk-sqlite` `SqliteStore`. Though there is no reason to believe it shouldnt work with any store implementing the `StateStore`-interface, this is the only one it has been tested with successfully.

This is part of [Acter](https://acter.global), which we are providing regular releases of for iOS, Android and Linux, MacOS & Windows, supporting at least the latest stable release. This crate is included in that and thus constantly tested for these environments.

Expand Down
2 changes: 1 addition & 1 deletion native/media-cache-wrapper/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

## Deprecated

Since [the merge #3858 of into `main`](https://github.com/matrix-org/matrix-rust-sdk/pull/3858) splitting the media cache features off into its own trait, there is no need to wrap the matrix-sdk store anymore to do so. Thus this crate is no longer needed and won't be maintained.
Since [the merge #3858 of into `main`](https://github.com/matrix-org/matrix-rust-sdk/pull/3858) splitting the media cache features off into its own trait, there is no need to wrap the matrix-sdk store anymore to do so. Thus this crate is no longer needed and wont be maintained.

0 comments on commit 157cf30

Please sign in to comment.