feat: Implement private read receipts
This commit is contained in:
parent
15e40b14be
commit
8ec3497b54
7 changed files with 26 additions and 3 deletions
|
|
@ -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}');
|
||||
|
|
|
|||
|
|
@ -459,6 +459,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
store.getBool(SettingKeys.sendTypingNotifications) ??
|
||||
AppConfig.sendTypingNotifications;
|
||||
|
||||
AppConfig.sendPublicReadReceipts =
|
||||
store.getBool(SettingKeys.sendPublicReadReceipts) ??
|
||||
AppConfig.sendPublicReadReceipts;
|
||||
|
||||
AppConfig.sendOnEnter =
|
||||
store.getBool(SettingKeys.sendOnEnter) ?? AppConfig.sendOnEnter;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue