Repository navigation
handle*: bridge marking chats as unread - #167
Merged
Merged
Conversation
Contributor
|
All clear! No issues remaining. 🎉 1 issue already resolved
All required CI checks passed on
Select any unchecked box below to run or rerun that agent. Full resultsIndent Review Agent
|
# Conflicts: # pkg/connector/handleslack.go
# Conflicts: # pkg/connector/handleslack.go
# Conflicts: # pkg/connector/handlematrix.go # pkg/connector/handleslack.go
tulir
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Marking a chat as unread didn't carry over in either direction. Slack has no unread flag: "Mark unread" in the web client just calls
conversations.markwith the timestamp of the message before the one you picked, so the read marker moves backwards. The bridge turned thatchannel_marked/im_markedinto a read receipt on an older message, which Matrix ignores, and it didn't implementMarkedUnreadHandlingNetworkAPIat all.Now a marked event that moves the cached last read backwards is bridged as
RemoteEventMarkUnread. From Matrix,m.marked_unreadmarks the conversation at the second newest message (same as the web client), and clearing it marks the newest one read. Matrix read receipts no longer move Slack's marker backwards, so they can't be mistaken for "mark unread". Room features now advertisemark_as_unread.Before / after
Same DM, main vs this branch:
m.marked_unreadstays falsem.marked_unread: truem.marked_unread: truefrom Matrixm.marked_unread: falsefrom MatrixIn Beeper cloud, Slack → Matrix unread doesn't take effect yet: bridgev2's
ASIntent.MarkUnreadreturns early when the homeserver is hungryserv, so it needs bridgev2/hungryserv support there. Matrix → Slack depends on the homeserver deliveringm.marked_unreadto the bridge.Tag
@indentto continue the conversation here.