actually do add fall back message for omemo
This commit is contained in:
parent
c4680e3198
commit
f4e3cd5098
|
@ -73,10 +73,10 @@ public class MessageGenerator extends AbstractGenerator {
|
||||||
if (axolotlMessage == null) {
|
if (axolotlMessage == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
packet.setAxolotlMessage(axolotlMessage.toElement());
|
||||||
if (!recipientSupportsOmemo(message)) {
|
if (!recipientSupportsOmemo(message)) {
|
||||||
packet.setBody(OMEMO_FALLBACK_MESSAGE);
|
packet.setBody(OMEMO_FALLBACK_MESSAGE);
|
||||||
}
|
}
|
||||||
packet.setAxolotlMessage(axolotlMessage.toElement());
|
|
||||||
packet.addChild("store", "urn:xmpp:hints");
|
packet.addChild("store", "urn:xmpp:hints");
|
||||||
return packet;
|
return packet;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue