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

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;
}