Disable OMEMO by default for cheogram.com bot

This commit is contained in:
Matthew Wild 2023-04-19 15:52:00 +01:00
parent ca6a3c7e16
commit 20049ffc24

View file

@ -167,6 +167,8 @@ class MessageEventHandler: XmppServiceEventHandler {
// chat.options.encryption == nil means it is set to defualt
if let telephonyProvider = AccountSettings.telephonyProvider(account).getString(), jid.domain.lowercased() == telephonyProvider.lowercased(), (chat.options.encryption == nil || chat.options.encryption == ChatEncryption.none) {
encryption = ChatEncryption.none
} else if jid.domain.lowercased() == "cheogram.com" {
encryption = ChatEncryption.none
}
switch encryption {