don't show raw otr message in notifications

This commit is contained in:
kosyak 2024-10-12 13:50:04 +02:00
parent 5920533cf5
commit 1a33af7c15
2 changed files with 3 additions and 0 deletions

View file

@ -344,6 +344,8 @@ public class UIHelper {
return new Pair<>(context.getString(R.string.file_deleted), true); return new Pair<>(context.getString(R.string.file_deleted), true);
} else if (message.getEncryption() == Message.ENCRYPTION_PGP) { } else if (message.getEncryption() == Message.ENCRYPTION_PGP) {
return new Pair<>(context.getString(R.string.pgp_message), true); 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) { } else if (message.getEncryption() == Message.ENCRYPTION_DECRYPTION_FAILED) {
return new Pair<>(context.getString(R.string.decryption_failed), true); return new Pair<>(context.getString(R.string.decryption_failed), true);
} else if (message.getEncryption() == Message.ENCRYPTION_AXOLOTL_NOT_FOR_THIS_DEVICE) { } else if (message.getEncryption() == Message.ENCRYPTION_AXOLOTL_NOT_FOR_THIS_DEVICE) {

View file

@ -39,6 +39,7 @@
<string name="sending">sending…</string> <string name="sending">sending…</string>
<string name="message_decrypting">Decrypting message. Please wait…</string> <string name="message_decrypting">Decrypting message. Please wait…</string>
<string name="pgp_message">OpenPGP encrypted message</string> <string name="pgp_message">OpenPGP encrypted message</string>
<string name="otr_message">Secret chat message</string>
<string name="nick_in_use">Nickname is already in use</string> <string name="nick_in_use">Nickname is already in use</string>
<string name="invalid_muc_nick">Invalid nickname</string> <string name="invalid_muc_nick">Invalid nickname</string>
<string name="admin">Admin</string> <string name="admin">Admin</string>