Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsxc/jsxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormightymop <totzkotz@gmail.com>2022-02-27 15:52:16 +0300
committermightymop <totzkotz@gmail.com>2022-03-03 23:12:05 +0300
commit49e63a8224b6cb602535c349f791f47a7934ef6d (patch)
treeb9914e0177d7251fc56c84fc5abe136d95e6fff4
parent3011a8ecd9211bb5e904a0fbd35099d57196715d (diff)
feat: add info about non decryptable omemo message from mam
-rw-r--r--locales/de.json3
-rw-r--r--locales/en.json3
-rw-r--r--src/plugins/mam/Archive.ts5
3 files changed, 9 insertions, 2 deletions
diff --git a/locales/de.json b/locales/de.json
index 713db73d..24351a1d 100644
--- a/locales/de.json
+++ b/locales/de.json
@@ -440,7 +440,8 @@
"Every_member_can_see_your_full_JID": null,
"message_not_delivered": "Nachricht nicht zugestellt",
"User_media_not_readable": null,
- "Configuration_canceled": "Raumkonfiguration abgebrochen"
+ "Configuration_canceled": "Raumkonfiguration abgebrochen",
+ "noomemofrommam": "Omemo verschlüsselte Nachrichten aus dem Archiv können nicht entschlüsselt werden."
},
"Notifications": "Benachrichtigungen"
}
diff --git a/locales/en.json b/locales/en.json
index 40fd57ac..59faf741 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -440,7 +440,8 @@
"Every_member_can_see_your_full_JID": "Every member can see your full JID",
"message_not_delivered": "Message not delivered",
"User_media_not_readable": "User media not readable. Is your device used by another application?",
- "Configuration_canceled": "Room configuration canceled"
+ "Configuration_canceled": "Room configuration canceled",
+ "noomemofrommam": "Omemo encrypted messages from archive can not be decrypted."
},
"Notifications": "Notifications"
}
diff --git a/src/plugins/mam/Archive.ts b/src/plugins/mam/Archive.ts
index e3a62c94..925a9dff 100644
--- a/src/plugins/mam/Archive.ts
+++ b/src/plugins/mam/Archive.ts
@@ -162,6 +162,11 @@ export default class Archive {
return;
}
+ if (forwardedElement.find('encrypted[xmlns="eu.siacs.conversations.axolotl"]').length > 0) {
+ plaintextBody = Translation.t('noomemofrommam');
+ htmlBody = $('<b>' + Translation.t('noomemofrommam') + '</b>');
+ }
+
let direction = this.contact.getJid().bare === to.bare ? Message.DIRECTION.OUT : Message.DIRECTION.IN;
let stanzaIdElement = messageElement.find('stanza-id[xmlns="urn:xmpp:sid:0"]');