add obb url to unencrypted messages

This commit is contained in:
Daniel Gultsch 2016-01-03 19:39:06 +01:00
parent a319446d41
commit c116f735dc

View file

@ -103,6 +103,7 @@ public class MessageGenerator extends AbstractGenerator {
if (message.hasFileOnRemoteHost()) {
Message.FileParams fileParams = message.getFileParams();
content = fileParams.url.toString();
packet.addChild("x","jabber:x:oob").addChild("url").setContent(content);
} else {
content = message.getBody();
}