diff options
author | fiaxh <git@mx.ax.lt> | 2017-12-11 18:39:55 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-12-13 21:11:33 +0100 |
commit | f25fadde2d6c9492b9cafe2cddbcc7b966942e47 (patch) | |
tree | 84b25287be10372933e2ea4f708231e9ec5e142a /xmpp-vala/src/module | |
parent | fc0d7feb5aef16e0024cfeb73286038998e926d2 (diff) | |
download | dino-f25fadde2d6c9492b9cafe2cddbcc7b966942e47.tar.gz dino-f25fadde2d6c9492b9cafe2cddbcc7b966942e47.zip |
Fallback display for all file types
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r-- | xmpp-vala/src/module/xep/0066_out_of_band_data.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0066_out_of_band_data.vala b/xmpp-vala/src/module/xep/0066_out_of_band_data.vala index b482252b..804d406a 100644 --- a/xmpp-vala/src/module/xep/0066_out_of_band_data.vala +++ b/xmpp-vala/src/module/xep/0066_out_of_band_data.vala @@ -8,4 +8,8 @@ public static void add_url_to_message(Message.Stanza message, string url, string message.stanza.put_node(new StanzaNode.build("x", NS_URI).add_self_xmlns().put_node(new StanzaNode.build("url", NS_URI).put_node(new StanzaNode.text(url)))); } +public static string? get_url_from_message(Message.Stanza message) { + return message.stanza.get_deep_string_content(NS_URI + ":x", NS_URI + ":url"); +} + } |