diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-01-03 19:39:06 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-01-03 19:39:06 +0100 |
commit | c116f735dcb632e78d91408d04159828d3d772df (patch) | |
tree | 389e64cda41d57b10807ff34bc28d5a810638d38 /src | |
parent | a319446d4108d21124dcb497912157cc68c1dd23 (diff) |
add obb url to unencrypted messages
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/MessageGenerator.java | 1 |
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 7b011656..b849f56f 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(); } |