Enable libolm

This commit is contained in:
Christian Pauly 2020-02-15 09:20:08 +01:00
commit d388d8267c
5 changed files with 108 additions and 4 deletions

View file

@ -162,9 +162,10 @@ extension LocalizedBody on Event {
break;
case EventTypes.Encryption:
localizedBody =
I18n.of(context).activatedEndToEndEncryption(senderName) +
". " +
I18n.of(context).needPantalaimonWarning;
I18n.of(context).activatedEndToEndEncryption(senderName);
if (!room.client.encryptionEnabled) {
localizedBody += ". " + I18n.of(context).needPantalaimonWarning;
}
break;
case EventTypes.Encrypted:
localizedBody = I18n.of(context).couldNotDecryptMessage;