Explorar o código

Remove reply fallback before generating new reply fallback. Fixes #26

Tulir Asokan %!s(int64=6) %!d(string=hai) anos
pai
achega
c054fbae8e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      portal.go

+ 1 - 0
portal.go

@@ -547,6 +547,7 @@ func (portal *Portal) SetReply(content *mautrix.Content, info whatsapp.MessageIn
 			portal.log.Warnln("Failed to get reply target:", err)
 			return
 		}
+		event.Content.RemoveReplyFallback()
 		content.SetReply(event)
 	}
 	return