Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get rid of unread status of a room #24595

Closed
Tracked by #24392
jplatte opened this issue Feb 21, 2023 · 16 comments
Closed
Tracked by #24392

Can't get rid of unread status of a room #24595

jplatte opened this issue Feb 21, 2023 · 16 comments
Labels
A-Notifications O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@jplatte
Copy link

jplatte commented Feb 21, 2023

Steps to reproduce

I opened Element today, caught up with some messages in a room I already read fully on mobile, but it still has the small white dot on it indicating unread messages. There is no unread dot on the thread button. Right click > Mark read does nothing.

edit: It just fixed itself after a new message came in. That message was marked read while I had the rageshake popup open. I hope the logs are helpful in some way.

I see that there was matrix-org/matrix-react-sdk#9941 which was released in 1.11.23, I will close this issue if I don't see unreads get stuck after that upgrade. It happens quite frequently right now.

Outcome

What did you expect?

The room being marked as read.

What happened instead?

The room being marked as unread.

Operating system

arch linux

Application version

1.11.20

How did you install the app?

element-desktop package

Homeserver

No response

Will you send logs?

Yes

@germain-gg germain-gg added X-Needs-Info This issue is blocked awaiting information from the reporter S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-Notifications O-Occasional Affects or can be seen by some users regularly or most users rarely labels Feb 21, 2023
@germain-gg
Copy link
Contributor

germain-gg commented Feb 21, 2023

There's quite a lot of issues related to that in an epic that I just linked to this issue.

If this does happen again, please know that we have a new notification debug tool. If you type /devtools in the composer you should see a new option "notification debug".
Copying and pasting the output here would be quite helpful

@jplatte
Copy link
Author

jplatte commented Feb 21, 2023

Thanks, will do!

@hannesj
Copy link

hannesj commented Feb 21, 2023

Same happening for me

Room status
- Room unread status: Grey, count: 1
- Notification state is all_messages
- Room is not encrypted 🚨
Main timeline
- Total: 0
- Highlight: 0
- Dot: false
Threads timeline
- Thread Id: $jtjo-SmBBn-XHtNdAtoRdp_4NVarqimhlitazkkCAJ8
  - Total: 0
  - Highlight: 0
  - Dot: true
  - User read up to: $dMfTNUYSLULO4oMp7J4ls5KKBc0FVT9tc_5cEsdSNow
  - Last event:
    - ID: $lN1o4lvKnAbps-_9Iy96r0ftnrT2a-qswveKK2yDRVc
    - Type: m.room.message
    - Sender: @:matrix.org
- Thread Id: $RQma5fDLdgQbsPfeFNnHnv5GB9ushpuR9iCe_9ZbYTo
  - Total: 1
  - Highlight: 0
  - Dot: false
  - User read up to: $Bm4Zka0Uz3CiHV8eH-t1YB7t5KduUahotNlzgMcRj-I
  - Last event:
    - ID: $Bm4Zka0Uz3CiHV8eH-t1YB7t5KduUahotNlzgMcRj-I
    - Type: m.room.message
    - Sender: @:matrix.org

Could it be about a deleted message? Notification about it briefly flashes in the threads list, but vanishes immediately.

@jjenzz
Copy link

jjenzz commented Feb 21, 2023

i am also experiencing this in 1.11.23 for two separate channels atm. i've tried to "Mark as read" but no dice.

Room status
- Room unread status: Bold
- Notification state is mentions_only
- Room is encrypted ✅
Main timeline
- Total: 0
- Highlight: 0
- Dot: true
- User read up to: $mWPaOJh3aGQfe0gnOuZdRYShYrFGPbsOJJx_L8gSiUI
- Last event:
    - ID: $Ep4VPli6avtqd9tkagMDnGaDXirivoJ9Y81W8-5mgTw
    - Type: m.room.message
    - Sender: @:matrix.org
Room status
- Room unread status: Bold
- Notification state is mentions_only
- Room is encrypted ✅
Main timeline
- Total: 0
- Highlight: 0
- Dot: true
- User read up to: $zrhU_0DGz34rHOFCupwkVKOiZ2lHrFRjmVH3fKDX9ew
- Last event:
    - ID: $KXV3ws_VEpU9-CE0L2hL9r96SNebLZ3083TuGZUonHw
    - Type: m.room.message
    - Sender: @:matrix.org

@leonardehrenfried
Copy link

I'm seeing the same thing:

Notifications debug
Room ID: !oXNNoHKzbaSOlFzLEt:gitter.im
Room status

    Room unread status: Bold
    Notification state is all_messages_loud
    Room is not encrypted 🚨

Main timeline

    Total: 0
    Highlight: 0
    Dot: true
    User read up to: $aNsXIp8g11CepCRja3GMWVRX64zqthaEbMv-7eY1O7g
    Last event:
        ID: $ecsA3i6u5yFAsgFrBDUosPs_wNoz34GtC_RR5fd63cQ
        Type: m.room.message
        Sender: @optionsome-6357be356da03739849e595d:gitter.im

@germain-gg germain-gg added O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience and removed X-Needs-Info This issue is blocked awaiting information from the reporter O-Occasional Affects or can be seen by some users regularly or most users rarely labels Feb 22, 2023
@Johennes Johennes changed the title Can't get rid of unread status of a room Stuck notifications: Can't get rid of unread status of a room Feb 27, 2023
@hannesj
Copy link

hannesj commented Feb 28, 2023

Now the devtools shows an item where I'm the sender of the last message in the thread.

image

@jplatte
Copy link
Author

jplatte commented Mar 7, 2023

Still a problem on latest git version (1.11.24.r26.g3c4d25d6c2-1 as determined by the AUR pkgbuild's pkgver):

Notifications debug
Raum-ID: !QQpfJfZvqxbCfeDgCj:matrix.org
Raumstatus
  Room unread status: Fett
  Notification state is mentions_only
  Room is not encrypted 🚨
Hauptverlauf
  Insgesamt: 0
  Höhepunkt: 0
  Punkt: true
  Der Benutzer hat gelesen bis: $zlFg0n1gHgrFBVZU02lI98tRMnk1aquFrfvZdObFffo
  Neuestes Ereignis:
    ID: $wQhdJXJA3EYaXkcEs8HAL6ensLajCod63STdxvSmU04
    Typ: m.reaction
    Absender: @andrewm:element.io
Thread-Verlauf

@MadLittleMods
Copy link
Contributor

MadLittleMods commented Mar 21, 2023

Reproduction:

Rageshake logs: https://github.com/matrix-org/element-web-rageshakes/issues/20739

Notifications debug output:

Room status
 - Room unread status: Bold
 - Notification state is mentions_only
 - Room is not encrypted 🚨
Main timeline
 - Total: 0
 - Highlight: 0
 - Dot: true
 - User read up to: $v1xNjqIMcB93heBFWqXdwzt6N2PvRpyl2eSSynsfad0
 - Last event:
    - ID: $XwfpdmDh6-HCg5ot9lOxgdceNnJvmsn3aW3c0ooQEQE
    - Type: m.room.member
    - Sender: @shayshay:matrix.org
Threads timeline
Stuck unread dot in room list No unread dots on threads Last event in main timeline (no jump to unread arrows in timeline)

According to the output above, it seems like my read receipt is stuck at $v1xNjqIMcB93heBFWqXdwzt6N2PvRpyl2eSSynsfad0 which is where I started catching up and reading from (an event from 3 days ago). Perhaps this is related to the unread horizon not following your scroll correctly (#10873) although I don't have any unread horizon or jump to unread indicators in the timeline. Perhaps it's more of a bug with those UI pieces than a "room stuck unread" problem. Even switching rooms and back doesn't show any unread indicator in the timeline.

@alexander-potemkin
Copy link

@t3chguy , is there any news on that one?
It keeps happening every day for me, quite annoying...

@t3chguy
Copy link
Member

t3chguy commented Apr 21, 2023

@alexander-potemkin any news would be in this ticket. I'm not assigned to this issue so I have no idea what's going on with it.

@alexander-potemkin
Copy link

@t3chguy there are none so far, that's exactly the reason I'm asking. I understand now you are not the person in charge, which was not clear initially, as you were the person to triage the issue.

For everyone looking for the fix and updates - that seems to be a ticket to track: #24392

@Johennes Johennes changed the title Stuck notifications: Can't get rid of unread status of a room Can't get rid of unread status of a room May 5, 2023
@jplatte
Copy link
Author

jplatte commented Jul 7, 2023

Got a new really weird stuck unread status with Element Desktop 1.11.35: It says I have a mention in the room (likely a reply, that I already read yesterday, outside a thread). When switching between that room and others and using right-click 'Mark as Read', it disappeared and re-appeared, though the room was always marked as unread (just sometimes with, sometimes without a mention, i.e. large red circle with 1 in it vs. small white circle). No new messages arrived while I was playing around.

After doing this for a while, I was no longer able to reproduce the unread-with-mentions state, but after restarting and waiting a bit it came back. I also got the jump-to-last-unread-msg button in the top-right, and clicked it. This changed the room into a view where only the latest message (which also is a thread root) and the thread button were visible, and the unread status changed to a grey circle.

Here's the debug output with the grey circle, I think red circle as exactly the same except for the unread status bit. Unfortunately I wasn't able to get the unread status other than small-white-circle after locale change.

Raumstatus
Room unread status: Grau, count: 1
Benachrichtigungsstand ist mentions_only
Raum ist verschlüsselt ✅
Hauptverlauf
Insgesamt: 1
Höhepunkt: 0
Punkt: true
Der Benutzer hat gelesen bis: $mHNMm_1CJYxDgZYBxC2uCs0PFiAV0VJPZ-1U9T9ULzc
Neuestes Ereignis:
ID: $hV68nj_BXk7BSSu5IxUygqE_LExBIAzqzeaQodUT-eI
Typ: m.room.message
Absender: @jorgem:element.io

Here it is for small-white-circle:

Room status
Room unread status: Bold
Notification state is mentions_only
Room is encrypted ✅
Main timeline
Total: 0
Highlight: 0
Dot: true
User read up to: $Z6i_qIRweVT0knSg-rECw4Ek-N_1pFMLY2q5e0gTt1Q
Last event:
ID: $hV68nj_BXk7BSSu5IxUygqE_LExBIAzqzeaQodUT-eI
Type: m.room.message
Sender: @jorgem:element.io
Threads timeline

I was able to clear the unread status by adding a reaction to an arbitrary message (and removing it again).

@t3chguy
Copy link
Member

t3chguy commented Jul 20, 2023

This is believed to have been fixed, if you are still experiencing this issue please comment with reproduction steps and submit new logs

@t3chguy t3chguy closed this as completed Jul 20, 2023
@imincik
Copy link

imincik commented Aug 25, 2023

@t3chguy , I am hitting this issue all the time.

Developer Tools
Notifications debug
Room ID: !LIBpELfAqNehbGpenv:matrix.org
Room status
Room unread status: Bold
Notification state is all_messages
Room is encrypted ✅
Main timeline
Total: 0
Highlight: 0
Dot: true
User read up to: $QUWKt-bTlne6Klf0srRXtv6QT5t8hUA0EU_Q_oP7i24
User read up to (ignoreSynthetic): $QUWKt-bTlne6Klf0srRXtv6QT5t8hUA0EU_Q_oP7i24
Last event:
ID: $giyMcyg82KOpmYGQRfUc1XfZEP9ILq8LquZEOyGMJ-A
Type: m.room.message
Sender: @alejandrosame:matrix.org
Threads timeline

Element version: 1.11.38
Olm version: 3.2.14

In which Element version this issue is supposed to be fixed ?

@viceice
Copy link

viceice commented Jan 5, 2024

I see this happenening on windows desktop app after hibernate. All threads are unrad again.

A restart of element app resolves the issue.

@hurradiegams
Copy link

I see this happenening on windows desktop app after hibernate. All threads are unrad again.

A restart of element app resolves the issue.

Same here on Element Desktop on Linux.
After hibernation most of the threads are unread again, some channels too. If necessary I will provide logs.

Should this Issue be reopened or should one make a new one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Notifications O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests