fixed translator

This commit is contained in:
gdlbo
2022-08-15 14:35:33 +03:00
parent e9d63463c5
commit 208e601f08
@@ -1,5 +1,6 @@
package ru.vtosters.lite.encryption;
import static ru.vtosters.lite.hooks.MessagesHook.injectOwnText;
import static ru.vtosters.lite.hooks.MessagesHook.injectOwnTextAll;
import android.util.Log;
@@ -98,11 +99,11 @@ public class EncryptProvider {
for (IMProcessor processor : processors) {
int peer = getPeerId(msg);
if (processor.isUsedToEncrypt(peer)) {
return injectOwnTextAll(processor.encode(msgBody, getKeyForProcessor(processor, peer)));
return injectOwnText(processor.encode(msgBody, getKeyForProcessor(processor, peer)));
}
}
return injectOwnTextAll(msgBody);
return injectOwnText(msgBody);
}
// For rendering UI