mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +00:00
chore: Follow up fetch presences from server
This commit is contained in:
parent
4b8c94f4a5
commit
4214785b00
3 changed files with 17 additions and 7 deletions
|
@ -51,8 +51,12 @@ class StatusMessageList extends StatelessWidget {
|
||||||
.map((userId) => client.presences[userId])
|
.map((userId) => client.presences[userId])
|
||||||
.whereType<CachedPresence>(),
|
.whereType<CachedPresence>(),
|
||||||
future: Future.wait(
|
future: Future.wait(
|
||||||
client.interestingPresences
|
client.interestingPresences.map(
|
||||||
.map((userId) => client.fetchCurrentPresence(userId)),
|
(userId) => client.fetchCurrentPresence(
|
||||||
|
userId,
|
||||||
|
fetchFromServer: false,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
final presences =
|
final presences =
|
||||||
|
|
|
@ -1152,10 +1152,11 @@ packages:
|
||||||
matrix:
|
matrix:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: matrix
|
path: "."
|
||||||
sha256: "7cfc028910b51dee3b8f4e81e8124e2bf3daf9cc8ec07414840f2972ec91080b"
|
ref: "krille/fetch-presence-database-only"
|
||||||
url: "https://pub.dev"
|
resolved-ref: "5d0c5c5510aefbf78c9e35895debd7ff51f46e22"
|
||||||
source: hosted
|
url: "https://github.com/famedly/matrix-dart-sdk.git"
|
||||||
|
source: git
|
||||||
version: "0.25.0"
|
version: "0.25.0"
|
||||||
matrix_api_lite:
|
matrix_api_lite:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
|
|
|
@ -159,10 +159,15 @@ dependency_overrides:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/TheOneWithTheBraid/keyboard_shortcuts.git
|
url: https://github.com/TheOneWithTheBraid/keyboard_shortcuts.git
|
||||||
ref: null-safety
|
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
|
# blocked upgrade of package_info_plus for null safety
|
||||||
# https://github.com/creativecreatorormaybenot/wakelock/pull/203
|
# https://github.com/creativecreatorormaybenot/wakelock/pull/203
|
||||||
wakelock_windows:
|
wakelock_windows:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/chandrabezzo/wakelock.git
|
url: https://github.com/chandrabezzo/wakelock.git
|
||||||
ref: main
|
ref: main
|
||||||
path: wakelock_windows/
|
path: wakelock_windows/
|
Loading…
Reference in a new issue