Merge pull request #495 from mautrix/fix-build

commands: fix build
This commit is contained in:
Sumner Evans 2022-05-16 18:23:14 -06:00 committed by GitHub
commit 5c70c39625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1246,7 +1246,7 @@ func (handler *CommandHandler) CommandDisappearingTimer(ce *CommandEvent) {
ce.Portal.ExpirationTime = prevExpirationTime
return
}
ce.Portal.Update()
ce.Portal.Update(nil)
if !ce.Portal.IsPrivateChat() && !ce.Bridge.Config.Bridge.DisappearingMessagesInGroups {
ce.Reply("Disappearing timer changed successfully, but this bridge is not configured to disappear messages in group chats.")
} else {