From 1a33af7c15a594193e4cf528ada9a07e51b9eee0 Mon Sep 17 00:00:00 2001 From: kosyak Date: Sat, 12 Oct 2024 13:50:04 +0200 Subject: [PATCH] don't show raw otr message in notifications --- src/main/java/eu/siacs/conversations/utils/UIHelper.java | 2 ++ src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java index d1b863082..d3f99e3bc 100644 --- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java @@ -344,6 +344,8 @@ public class UIHelper { return new Pair<>(context.getString(R.string.file_deleted), true); } else if (message.getEncryption() == Message.ENCRYPTION_PGP) { return new Pair<>(context.getString(R.string.pgp_message), true); + } else if (message.getEncryption() == Message.ENCRYPTION_OTR) { + return new Pair<>(context.getString(R.string.otr_message), true); } else if (message.getEncryption() == Message.ENCRYPTION_DECRYPTION_FAILED) { return new Pair<>(context.getString(R.string.decryption_failed), true); } else if (message.getEncryption() == Message.ENCRYPTION_AXOLOTL_NOT_FOR_THIS_DEVICE) { diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 4a9cf5db3..0acfa1d30 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -39,6 +39,7 @@ sending… Decrypting message. Please wait… OpenPGP encrypted message + Secret chat message Nickname is already in use Invalid nickname Admin