diff --git a/portal.go b/portal.go index 16dd13e..41d4493 100644 --- a/portal.go +++ b/portal.go @@ -2142,7 +2142,7 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *event.Event) { portal.log.Debugln("Sending event", evt.ID, "to WhatsApp", info.ID) ts, err := sender.Client.SendMessage(portal.Key.JID, info.ID, msg) if err != nil { - portal.log.Errorln("Error sending message: %v", err) + portal.log.Errorfln("Error sending message: %v", err) portal.sendErrorMessage(err.Error(), true) portal.bridge.AS.SendErrorMessageSendCheckpoint(evt, appservice.StepRemote, err, true) } else { diff --git a/user.go b/user.go index c2d8b1e..e46be6e 100644 --- a/user.go +++ b/user.go @@ -573,7 +573,7 @@ func (user *User) syncChatDoublePuppetDetails(portal *Portal, justCreated bool) return } intent := doublePuppet.CustomIntent() - if justCreated && user.bridge.Config.Bridge.MuteStatusBroadcast { + if portal.Key.JID == types.StatusBroadcastJID && justCreated && user.bridge.Config.Bridge.MuteStatusBroadcast { user.updateChatMute(intent, portal, time.Now().Add(365*24*time.Hour)) user.updateChatTag(intent, portal, user.bridge.Config.Bridge.ArchiveTag, true) return