Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
SS: Hook up notification counts #17546
base: develop
Are you sure you want to change the base?
SS: Hook up notification counts #17546
Changes from 2 commits
98b3f56
ba7969b
f7ad92e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this field optional for encrypted rooms please? It's very likely to be inaccurate for such rooms. It's better to return nothing than an incorrect value I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this PR given the latest from ElementX/Rust team is
Although
And we're not sure if the app even shows notification counts.
And we seem to agree that notification counts from the servers perspective seem pointless given encrypted rooms. Perhaps we should just be removing these fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erikjohnston asked for further clarification in an internal room on Friday but nothing has materialized yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The topic came up again in an internal room. Here is a summary:
There was a strong feeling to get rid of them since there is no point in sending known bad data to clients. The
highlight_count
/notification_count
won't be accurate or make sense in end-to-end encrypted (E2EE) rooms (the client needs to decrypt the messages to see what they actually are or if they mention the user). @stefanceriu and @ara4n also mentioned that even in unencrypted rooms, they are an approximation because the server doesn't know what the client can render. Not sure that I follow the point about unencrypted rooms as it seems like the push rules could align with whatever your client considers.Product-wise, the Rust SDK ignores
highlight_count
/notification_count
and the Element X apps don't have unread counts, only unread badges (product decision) even though WhatsApp/Telegram do have them.For clients, that do want to show the unread count, the
highlight_count
/notification_count
is useful for big public chat rooms. Otherwise, the client needs to spider the entire room (probably up to your read-receipt) to see if you're mentioned which feels inefficient. @ara4n was originally in favor of dropping these fields but now considers them useful to keep and clients should ignore them for E2EE encrypted rooms and just calculate it themselves by spidering on the client.