fixed null decrypt msg

This commit is contained in:
gdlbo
2022-08-15 15:30:49 +03:00
parent dfeff9903d
commit 97453703e1
@@ -237,12 +237,15 @@ public class DNRInjector {
var isTextExist = !text.isEmpty() && !text.equals(" ");
var isReplyExist = !reply.isEmpty() && !reply.equals(" ");
text = decryptMessage(text, peerId);
if (isReplyExist) {
reply = decryptMessage(reply, peerId);
}
if (isTextExist) {
text = decryptMessage(text, peerId);
}
if (action == MsgAction.valueOf("TRANSLATE")) {
if (isTextExist && isReplyExist) {
Translate.showTranslatedText(context, text + "\n\n" + AndroidUtils.getString("translator_reply") + "\n" + reply);