|
@@ -835,9 +835,13 @@ func (user *User) syncChatDoublePuppetDetails(portal *Portal, justCreated bool)
|
|
|
return
|
|
|
}
|
|
|
intent := doublePuppet.CustomIntent()
|
|
|
- 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)
|
|
|
+ if portal.Key.JID == types.StatusBroadcastJID && justCreated {
|
|
|
+ if user.bridge.Config.Bridge.MuteStatusBroadcast {
|
|
|
+ user.updateChatMute(intent, portal, time.Now().Add(365*24*time.Hour))
|
|
|
+ }
|
|
|
+ if len(user.bridge.Config.Bridge.StatusBroadcastTag) > 0 {
|
|
|
+ user.updateChatTag(intent, portal, user.bridge.Config.Bridge.StatusBroadcastTag, true)
|
|
|
+ }
|
|
|
return
|
|
|
} else if !chat.Found {
|
|
|
return
|