actually do add fall back message for omemo

This commit is contained in:
Daniel Gultsch 2016-06-12 14:49:04 +02:00
parent c4680e3198
commit f4e3cd5098
1 changed files with 1 additions and 1 deletions

View File

@ -73,10 +73,10 @@ public class MessageGenerator extends AbstractGenerator {
if (axolotlMessage == null) {
return null;
}
packet.setAxolotlMessage(axolotlMessage.toElement());
if (!recipientSupportsOmemo(message)) {
packet.setBody(OMEMO_FALLBACK_MESSAGE);
}
packet.setAxolotlMessage(axolotlMessage.toElement());
packet.addChild("store", "urn:xmpp:hints");
return packet;
}