aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-29 13:23:35 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-29 13:23:35 +0200
commit2f99f9c043ea52736c60bd8f2ed9e11ec1553f7b (patch)
tree83e8301db58f96aa7056854faf3097e4f138f5e7 /src/main/java/de/pixart/messenger
parent0e2662fbf28072e37eca0ea7897d716b0865ab13 (diff)
always include omemo fallback message
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/generator/MessageGenerator.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/MessageGenerator.java b/src/main/java/de/pixart/messenger/generator/MessageGenerator.java
index 0a113b420..ca028d9b7 100644
--- a/src/main/java/de/pixart/messenger/generator/MessageGenerator.java
+++ b/src/main/java/de/pixart/messenger/generator/MessageGenerator.java
@@ -81,9 +81,7 @@ public class MessageGenerator extends AbstractGenerator {
return null;
}
packet.setAxolotlMessage(axolotlMessage.toElement());
- if (Config.supportUnencrypted() && !recipientSupportsOmemo(message)) {
- packet.setBody(OMEMO_FALLBACK_MESSAGE);
- }
+ packet.setBody(OMEMO_FALLBACK_MESSAGE);
packet.addChild("store", "urn:xmpp:hints");
packet.addChild("encryption", "urn:xmpp:eme:0").setAttribute("name", "OMEMO").setAttribute("namespace", AxolotlService.PEP_PREFIX);
return packet;