chore: Follow up fetch presences from server

This commit is contained in:
krille-chan 2023-12-24 08:52:35 +01:00
parent 4b8c94f4a5
commit 4214785b00
No known key found for this signature in database
3 changed files with 17 additions and 7 deletions

View file

@ -51,8 +51,12 @@ class StatusMessageList extends StatelessWidget {
.map((userId) => client.presences[userId])
.whereType<CachedPresence>(),
future: Future.wait(
client.interestingPresences
.map((userId) => client.fetchCurrentPresence(userId)),
client.interestingPresences.map(
(userId) => client.fetchCurrentPresence(
userId,
fetchFromServer: false,
),
),
),
builder: (context, snapshot) {
final presences =

View file

@ -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

View file

@ -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/