Update mautrix-go and stop sending all thread messages as replies

This commit is contained in:
Tulir Asokan
2022-10-28 23:45:35 +03:00
parent 8728867737
commit b64617a699
5 changed files with 6 additions and 6 deletions

View File

@@ -1174,7 +1174,7 @@ func (portal *Portal) handleMatrixMessage(sender *User, evt *event.Event) {
switch content.MsgType {
case event.MsgText, event.MsgEmote, event.MsgNotice:
if replyToMXID := content.GetReplyTo(); replyToMXID != "" {
if replyToMXID := content.RelatesTo.GetNonFallbackReplyTo(); replyToMXID != "" {
replyTo := portal.bridge.DB.Message.GetByMXID(portal.Key, replyToMXID)
if replyTo != nil && replyTo.ThreadID == threadID {
sendReq.Reference = &discordgo.MessageReference{