From fd83ea8c0a2172ea97b6e5a35976e66faf2d7a0a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 26 Apr 2023 15:16:36 +0300 Subject: [PATCH] Fix bug with cross-room status replies --- portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 277a757..0e65364 100644 --- a/portal.go +++ b/portal.go @@ -1894,7 +1894,7 @@ func (portal *Portal) SetReply(content *event.MessageEventContent, replyTo *Repl if portal.bridge.Config.Bridge.CrossRoomReplies && !replyTo.Chat.IsEmpty() && replyTo.Chat != key.JID { if replyTo.Chat.Server == types.GroupServer { key = database.NewPortalKey(replyTo.Chat, types.EmptyJID) - } else if replyTo.Chat == types.BroadcastServerJID { + } else if replyTo.Chat == types.StatusBroadcastJID { key = database.NewPortalKey(replyTo.Chat, key.Receiver) } if key != portal.Key {