aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-01-03 19:39:06 +0100
committerDaniel Gultsch <daniel@gultsch.de>2016-01-03 19:39:06 +0100
commitc116f735dcb632e78d91408d04159828d3d772df (patch)
tree389e64cda41d57b10807ff34bc28d5a810638d38
parenta319446d4108d21124dcb497912157cc68c1dd23 (diff)
add obb url to unencrypted messages
-rw-r--r--src/main/java/eu/siacs/conversations/generator/MessageGenerator.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java b/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java
index 7b0116561..b849f56f4 100644
--- a/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java
+++ b/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java
@@ -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();
}