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

Mark read not working

Open chagai95 opened this issue 4 years ago • 11 comments

Describe the bug

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

To Reproduce

Steps to reproduce the behavior:

  • get a message
  • click on mark read in the notification bar

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):

  • Device: Redmi Note 8 Pro
  • OS: MIUI Global 12.0.4 (Android Version 10)

IMG_20210522_102701

Additional context

  • App version and store: 1.1.7 Google Play beta tester
  • Homeserver: matrix.org

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

chagai95 avatar May 22 '21 08:05 chagai95

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 avatar May 26 '21 12:05 bmarty

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

bmarty avatar May 26 '21 12:05 bmarty

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 avatar May 26 '21 18:05 chagai95

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

chagai95 avatar May 26 '21 18:05 chagai95

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 avatar May 27 '21 12:05 SimonBrandner

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

SimonBrandner avatar May 27 '21 17:05 SimonBrandner

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

stephen304 avatar Dec 06 '22 16:12 stephen304

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?

MagsMagnoli avatar Jan 21 '23 21:01 MagsMagnoli

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.

Igetin avatar Jun 12 '23 05:06 Igetin

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

NumbGnat avatar Jun 14 '23 17:06 NumbGnat

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

SanifC avatar May 30 '24 17:05 SanifC