fix: Only add a <body> element when specified
This commit is contained in:
parent
cc1b371198
commit
88efdc361c
@ -186,10 +186,12 @@ class MessageManager extends XmppManagerBase {
|
|||||||
body = details.messageRetraction!.fallback;
|
body = details.messageRetraction!.fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (body != null) {
|
||||||
stanza.addChild(
|
stanza.addChild(
|
||||||
XMLNode(tag: 'body', text: body),
|
XMLNode(tag: 'body', text: body),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (details.requestDeliveryReceipt) {
|
if (details.requestDeliveryReceipt) {
|
||||||
stanza.addChild(makeMessageDeliveryRequest());
|
stanza.addChild(makeMessageDeliveryRequest());
|
||||||
|
Loading…
Reference in New Issue
Block a user