Don't bother looking for link previews OMEMO

Since it has to be stripped anyway without twomemo

(cherry picked from commit 9901c353d5d202098a2a4272df38e7c69d7b4734)
This commit is contained in:
Stephen Paul Weber 2024-09-08 22:15:24 -05:00 committed by Arne
parent ab70a99f93
commit 96eca36620

View file

@ -1985,7 +1985,7 @@ public class XmppConnectionService extends Service {
}
boolean waitForPreview = false;
if (getPreferences().getBoolean("send_link_previews", true) && !previewedLinks && !message.needsUploading()) {
if (getPreferences().getBoolean("send_link_previews", true) && !previewedLinks && !message.needsUploading() && message.getEncryption() != Message.ENCRYPTION_AXOLOTL) {
final List<URI> links = message.getLinks();
if (!links.isEmpty()) {
waitForPreview = true;