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

Threads: When read, doesn't leave Unreads filter view #7090

Open
daniellekirkwood opened this issue Nov 18, 2022 · 9 comments · Fixed by matrix-org/matrix-ios-sdk#1723
Open
Labels
A-Threads Message threading to simplify the Timeline App: iOS O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@daniellekirkwood
Copy link
Contributor

I got a thread message in a room, once I read it and went to the Unreads tab the message is read but the room shows in the Unreads tab still

image

@toshanmugaraj
Copy link
Contributor

At random cases the fetcher predicate fetches data with s_hasAnyUnread:false even when the predicate has MXRoomSummaryDataTypesUnread

@daniellekirkwood daniellekirkwood added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Occasional Affects or can be seen by some users regularly or most users rarely and removed Team: Delight labels Jan 31, 2023
@Johennes Johennes changed the title Threads: When read doesn't leave Unreads filter view Threads: When read, doesn't leave Unreads filter view Feb 6, 2023
@alfogrillo alfogrillo self-assigned this Feb 21, 2023
@alfogrillo
Copy link
Contributor

At random cases the fetcher predicate fetches data with s_hasAnyUnread:false even when the predicate has MXRoomSummaryDataTypesUnread

I think it was because s_hasAnyUnread wasn't really used for this kind of fetch (very counterintuitively).
Now it should after this.
Please have look if you wish!

@Johennes
Copy link
Contributor

Reopening as the original fix was reverted in matrix-org/matrix-ios-sdk#1736.

@NicolasBuquet
Copy link

I don't understand why matrix-org/matrix-ios-sdk#1723 was reverted by matrix-org/matrix-ios-sdk#1736 ?

Unread tabs list a lot of totally read rooms.

If i locally reapply matrix-org/matrix-ios-sdk#1723 then unread tab only lists rooms with unread messages as attended.

Please, reapply matrix-org/matrix-ios-sdk#1723

@pixlwave
Copy link
Member

pixlwave commented Nov 2, 2023

If I remember correctly, whilst the mentioned PR did fix the underlying bug, it completely changed the desired behaviour of the tab, which is to only show rooms with notifications, and not simply any room where the read marker isn't on the last event. This is why the bug still stands, it will need to be fixed some other way.

@alfogrillo
Copy link
Contributor

@NicolasBuquet I have the same memories as Doug.
Unintuitively although the tab says "Unreads", people expect to see rooms with notifications there.
This is why we decided to revert that PR.

@NicolasBuquet
Copy link

Thank you for your comments.

But to have a better understanding, what is the difference between a room with unread messages and a room with notifications?

And, won't it be a good thing finally to be able to parametrize this filter on the Matrix SDK side?

@pixlwave
Copy link
Member

pixlwave commented Nov 6, 2023

If you set a room's notification settings to Mentions and Keywords only, then it will have an unread message for you when someone sends a message of Hello world, but when someone mentions @NicolasBuquet in a message, then it will have a notification. In practice the app:

  • Shows no indicator for a read room
  • Shows a black indicator on the leading edge of the cell for an unread room
  • Shows a number on the trailing edge of the cell for a room with a notification.

Screenshot 2023-11-06 at 10 58 56 am

@NicolasBuquet
Copy link

@pixlwave Thank you for this explanation.

It's clearer for me now. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Threads Message threading to simplify the Timeline App: iOS O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants