add obb url to unencrypted messages
This commit is contained in:
parent
a319446d41
commit
c116f735dc
|
@ -103,6 +103,7 @@ public class MessageGenerator extends AbstractGenerator {
|
||||||
if (message.hasFileOnRemoteHost()) {
|
if (message.hasFileOnRemoteHost()) {
|
||||||
Message.FileParams fileParams = message.getFileParams();
|
Message.FileParams fileParams = message.getFileParams();
|
||||||
content = fileParams.url.toString();
|
content = fileParams.url.toString();
|
||||||
|
packet.addChild("x","jabber:x:oob").addChild("url").setContent(content);
|
||||||
} else {
|
} else {
|
||||||
content = message.getBody();
|
content = message.getBody();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue