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

@ -388,7 +388,12 @@ class ChatController extends State<ChatPageWithRoom>
Logs().d('Set read marker...', eventId);
// ignore: unawaited_futures
_setReadMarkerFuture = timeline.setReadMarker(eventId: eventId).then((_) {
_setReadMarkerFuture = timeline
.setReadMarker(
eventId: eventId,
public: AppConfig.sendPublicReadReceipts,
)
.then((_) {
_setReadMarkerFuture = null;
});
if (eventId == null || eventId == timeline.room.lastEvent?.eventId) {