-
Notifications
You must be signed in to change notification settings - Fork 395
Description
Hi everyone,
I've been trying to get the unread notification count working for a while now, but I just can't seem to get it to work.
The SDK currently offers the following methods for read receipts and notification counts:
BaseRoom::unread_notification_counts
BaseRoom::read_receipts
BaseRoom::num_unread_messages
BaseRoom::num_unread_notifications
BaseRoom::num_unread_mentionsAlthough I can retrieve the number of notifications using BaseRoom::unread_notification_counts, this often doesn't match other clients like Element. Sometimes notifications are missing, or an unread notification is returned while there is none.
This also causes problems with the JoinedRoomUpdate; the notification counts are not updated 100% correctly if, for example, another session marks a room as read. This also happens in unencrypted rooms.
With the methods:
BaseRoom::read_receipts
BaseRoom::num_unread_messages
BaseRoom::num_unread_notifications
BaseRoom::num_unread_mentionsI was never able retrieve the number of unread messages. They always return 0, even when the room is fully synced and there are new unread messages. I only call all methods once the initial sync is completely finished anyway.
I have now reached a point where I can no longer proceed using the documentation provided by the SDK.
Can anyone help here? Is anyone else having the same problems? Do I need to adjust some settings during sync?
Thanks in advance for any help!