element-x-android icon indicating copy to clipboard operation
element-x-android copied to clipboard

Notifications and unread messages are not in sync

Open kongo09 opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Check unread messages in EXA

Screenshot_20240712-141928

  1. Check unread messages in Android notifications

Screenshot_20240712-141922

Outcome

What did you expect?

The same messages are shown or notified. If I read a message in EXA, the corresponding android notification should be retracted.

What happened instead?

The displayed messages and notifications are inconsistent. As a user, I constantly feel there still is something to read in EXA even though there is not.

Your phone model

Pixel 5

Operating system version

Android 14

Application version and app store

0.4.16-nightly

Homeserver

No response

Will you send logs?

No

Are you willing to provide a PR?

No

kongo09 avatar Jul 12 '24 11:07 kongo09

If I read a message in EXA, the corresponding android notification should be retracted.

If you read a room from EXA, the corresponding notification should disappear. I have just checked and it's working as expected.

If you read the messages from another session, the notification will not disappear and this is tracked by #1998.

Also, if you dismiss the notification, it will not mark the room as read.

So if there is no other issue than #1998 I think we can close this one?

bmarty avatar Jul 15 '24 12:07 bmarty

As the screens above show, this is about the same session, i.e. notifications from EXA and reading the messages in EXA.

kongo09 avatar Jul 15 '24 21:07 kongo09

Just to confirm: are you using the action "Mark as read"? In this case, the notifications for the room are not removed, and I will fix that.

bmarty avatar Jul 16 '24 09:07 bmarty

What do you mean with "mark as read"?

I simply look at the notifications in Android and then the unread messages in EXA and this doesn't really align. If I read some messages in EXA, their notifications don't necessarily get taken out of Android. Some notifications in Android don't have corresponding unreads in EXA. It feels like to different things.

kongo09 avatar Jul 16 '24 13:07 kongo09

I think this is a symptom of https://github.com/element-hq/element-x-android/issues/1998.

davidegirardi avatar Oct 16 '24 12:10 davidegirardi

I am also intermittently experiencing this behavior, where opening a room from the room list on Element X does not dismiss the android notifications (also from Element X) for that room.

nermolov avatar Nov 21 '24 18:11 nermolov