diff --git a/lib/pages/chat_list/status_msg_list.dart b/lib/pages/chat_list/status_msg_list.dart index 40107412..c6e2dad6 100644 --- a/lib/pages/chat_list/status_msg_list.dart +++ b/lib/pages/chat_list/status_msg_list.dart @@ -51,8 +51,12 @@ class StatusMessageList extends StatelessWidget { .map((userId) => client.presences[userId]) .whereType(), future: Future.wait( - client.interestingPresences - .map((userId) => client.fetchCurrentPresence(userId)), + client.interestingPresences.map( + (userId) => client.fetchCurrentPresence( + userId, + fetchFromServer: false, + ), + ), ), builder: (context, snapshot) { final presences = diff --git a/pubspec.lock b/pubspec.lock index 23a0b7b2..a008485e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1152,10 +1152,11 @@ packages: matrix: dependency: "direct main" description: - name: matrix - sha256: "7cfc028910b51dee3b8f4e81e8124e2bf3daf9cc8ec07414840f2972ec91080b" - url: "https://pub.dev" - source: hosted + path: "." + ref: "krille/fetch-presence-database-only" + resolved-ref: "5d0c5c5510aefbf78c9e35895debd7ff51f46e22" + url: "https://github.com/famedly/matrix-dart-sdk.git" + source: git version: "0.25.0" matrix_api_lite: dependency: transitive diff --git a/pubspec.yaml b/pubspec.yaml index 00bde27d..7c1c7ed7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -159,10 +159,15 @@ dependency_overrides: git: url: https://github.com/TheOneWithTheBraid/keyboard_shortcuts.git ref: null-safety + # Until https://github.com/famedly/matrix-dart-sdk/pull/1661 is merged + matrix: + git: + url: https://github.com/famedly/matrix-dart-sdk.git + ref: krille/fetch-presence-database-only # blocked upgrade of package_info_plus for null safety # https://github.com/creativecreatorormaybenot/wakelock/pull/203 wakelock_windows: git: url: https://github.com/chandrabezzo/wakelock.git ref: main - path: wakelock_windows/ + path: wakelock_windows/ \ No newline at end of file