diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-29 13:23:35 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-29 13:23:35 +0200 |
commit | 2f99f9c043ea52736c60bd8f2ed9e11ec1553f7b (patch) | |
tree | 83e8301db58f96aa7056854faf3097e4f138f5e7 | |
parent | 0e2662fbf28072e37eca0ea7897d716b0865ab13 (diff) |
always include omemo fallback message
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/generator/MessageGenerator.java | 4 |
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; |