Skip to content

Conversation

@rnons
Copy link
Contributor

@rnons rnons commented Nov 21, 2025

No description provided.

@rnons rnons requested a review from tulir November 21, 2025 07:02
@rnons
Copy link
Contributor Author

rnons commented Dec 4, 2025

@tulir please review this as well

LatestMessageTS: latestMessageTS,
})
if readStatusChanged {
err = l.main.Bridge.Bot.MarkUnread(ctx, id.RoomID(portal.MXID), !conv.Read)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is marking the chat as unread with the bridge bot, not the user

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the last read message changed, dispatch a RemoteEventReadReceipt that tells what's the last read message

if the conversation is unread, but the last read message is the last message in the chat, dispatch a RemoteEventMarkUnread. That event is probably not needed in any other case, only if the last message is read but the chat is unread

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conv.lastReadAt doesn't change, only read and unreadCount change. I have tried RemoteEventMarkUnread, but nothing happened in beeper desktop. I can try again tomorrow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RemoteEventMarkUnread works when combined with beeper#327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants