element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.31k stars 696 forks source link

Mark read not working #3394

Open chagai95 opened 3 years ago

chagai95 commented 3 years ago

Describe the bug

Clicking on mark read in the notification bar does not result trigger anything.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

It should clear the notification and mark the message as read

Screenshots

Here's a screen cap showing the problem:

https://photos.app.goo.gl/FyoXeSeoqBdgGUq97

I also sent logs with a reference to this ticket, is that enough? How would I go about getting the logs from the app otherwise?

Smartphone (please complete the following information):

IMG_20210522_102701

Additional context

I suspect it might be a problem with Xiaomi but nevertheless WhatsApp/Telegram seem to not have the same problem.

bmarty commented 3 years ago

Just tested on my device and it works: it clear the notification, and the read marker is moving on the other side.

Can you try again with Element Android 1.1.8 ?

bmarty commented 3 years ago

Have a look at https://www.reddit.com/r/tasker/comments/8hwp30/notify_action_not_working/ maybe?

chagai95 commented 3 years ago

I can try the newest version sure. I have the problem only after a while, if I test it does work just if I wait for a while before I click it it does not work, what phone do you have? I didn't root my phone so I don't think that link can help me or do you think otherwise?

chagai95 commented 3 years ago

I don't have this problem on any other app....

SimonBrandner commented 3 years ago

I've been experiencing this for quite a while too. This happens about 30% of the time. I am on the latest version - this has been happening in previous versions and still happens now. I've also sent logs.

SimonBrandner commented 3 years ago

Ok, never mind, I think I've just experienced this with Discord...

stephen304 commented 1 year ago

I frequently encounter this, it seems with notifications that have been around for a few hours. Oddly, the inline reply function works, and sending a reply makes the mark as read button start working again:

https://user-images.githubusercontent.com/981915/205964986-4cf3af2f-9e2a-49b7-a66b-9753fe4abff5.mp4

MagsMagnoli commented 1 year ago

Mark as read via notification is not working for me or anyone else on my homeserver, all using various Android devices

The only way I've been able to get 'unread messages' to go away in general is to leave the room then come back to it.

Hm. The next time i did mark as read via notification it worked. So maybe its the fact I was recently in the app? I can see that after not using the app for a while maybe it being backgrounded is blocking the mark as read functionality. I havent dug into how its implemented here

After some light digging: https://github.com/vector-im/element-android/blob/f4dca572c50de3ffe6e37e06df0e44cd5fd9af0e/vector/src/main/java/im/vector/app/features/notifications/NotificationBroadcastReceiver.kt#L108 is where this is handled. Is it possible that after 30 mins or so we no longer have an 'active' session so this fails?

Igetin commented 1 year ago

I have this problem on a Galaxy S22 running Android 13 / One UI 5.1. I have not noticed the issue with other (chat) apps.

NumbGnat commented 1 year ago

Came here to report the same issue.

Google Pixel 4a(5G) Android 13 Element 1.5.32 [40105322] (G-8dcb5f70)

Recording of experience here...

https://github.com/vector-im/element-android/assets/1946849/0f33d48b-9fd2-407a-8973-4f6c64dac573

SanifC commented 3 months ago

The "Mark as Read" for Pop-up notifications is not working on my Android phone for the chat App.