feat: Implement private read receipts

This commit is contained in:
krille-chan 2024-01-20 09:13:53 +01:00
commit 8ec3497b54
No known key found for this signature in database
7 changed files with 26 additions and 3 deletions

View file

@ -111,7 +111,11 @@ extension LocalNotificationsExtension on MatrixState {
.singleWhere((a) => a.name == actionStr);
switch (action) {
case DesktopNotificationActions.seen:
room.setReadMarker(event.eventId, mRead: event.eventId);
room.setReadMarker(
event.eventId,
mRead: event.eventId,
public: AppConfig.sendPublicReadReceipts,
);
break;
case DesktopNotificationActions.openChat:
context.go('/rooms/${room.id}');