Conversation
ed2f62b to
3d8e74c
Compare
|
@tulir please review this as well |
pkg/connector/chatsync.go
Outdated
| LatestMessageTS: latestMessageTS, | ||
| }) | ||
| if readStatusChanged { | ||
| err = l.main.Bridge.Bot.MarkUnread(ctx, id.RoomID(portal.MXID), !conv.Read) |
There was a problem hiding this comment.
This is marking the chat as unread with the bridge bot, not the user
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
RemoteEventMarkUnread works when combined with beeper#327
699fd87 to
51b88f0
Compare
No description provided.