fix: Receipt row not auto updating
This commit is contained in:
parent
6bdefc43e9
commit
51ae4390ab
1 changed files with 62 additions and 49 deletions
|
|
@ -14,8 +14,19 @@ class SeenByRow extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
|
|
||||||
final seenByUsers = controller.room.getSeenByUsers(controller.timeline!);
|
|
||||||
const maxAvatars = 7;
|
const maxAvatars = 7;
|
||||||
|
return StreamBuilder(
|
||||||
|
stream: controller.room.client.onSync.stream.where(
|
||||||
|
(syncUpdate) =>
|
||||||
|
syncUpdate.rooms?.join?[controller.room.id]?.ephemeral?.any(
|
||||||
|
(ephemeral) => ephemeral.type == 'm.receipt',
|
||||||
|
) ??
|
||||||
|
false,
|
||||||
|
),
|
||||||
|
builder: (context, asyncSnapshot) {
|
||||||
|
final seenByUsers = controller.room.getSeenByUsers(
|
||||||
|
controller.timeline!,
|
||||||
|
);
|
||||||
return Container(
|
return Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|
@ -67,5 +78,7 @@ class SeenByRow extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue