Don't block AS transaction processing on read receipts

This commit is contained in:
Tulir Asokan 2023-10-05 13:08:38 +03:00
parent 500f030fb3
commit ed00d333d1

View file

@ -2003,12 +2003,14 @@ func (portal *Portal) HandleMatrixReadReceipt(brUser bridge.User, eventID id.Eve
targetMessage = lastMessage
}
log = log.With().Str("message_id", targetMessage.ID).Logger()
go func() {
err = user.Client.MarkRead(portal.ID, targetMessage.ID)
if err != nil {
log.Err(err).Msg("Failed to mark message as read")
} else {
log.Debug().Msg("Marked message as read after Matrix read receipt")
}
}()
}
func (portal *Portal) HandleMatrixReaction(sender *User, evt *event.Event) {