element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
1.08k stars 155 forks source link

Notifications and unread messages are not in sync #3184

Open kongo09 opened 4 months ago

kongo09 commented 4 months ago

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

bmarty commented 4 months ago

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?

kongo09 commented 4 months ago

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

bmarty commented 4 months ago

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.

kongo09 commented 4 months ago

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.

davidegirardi commented 4 weeks ago

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