diff options
author | xomachine <xomachiner@gmail.com> | 2018-07-07 16:12:18 +0300 |
---|---|---|
committer | xomachine <xomachiner@gmail.com> | 2018-07-07 16:12:18 +0300 |
commit | 985a54c443f9c842c7fbd92ccb119dd678e39c7f (patch) | |
tree | 66fec04fcd7cfa69a6f6327e3538f5538cc27a56 | |
parent | 854f7f87ead8c90805056a87c9074ed77e45c673 (diff) |
Fixed the appearance of the file in the chat for skype client
The skype web client is seems like sensitive to the quotes used in the xml content
if the single quotes are used the file transfer appears as an ordinal link with text around it.
-rw-r--r-- | skypeweb/skypeweb_contacts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/skypeweb/skypeweb_contacts.c b/skypeweb/skypeweb_contacts.c index 120b35a..ade5423 100644 --- a/skypeweb/skypeweb_contacts.c +++ b/skypeweb/skypeweb_contacts.c @@ -566,7 +566,9 @@ got_file_send_progress(PurpleHttpConnection *http_conn, PurpleHttpResponse *resp purple_xmlnode_set_attrib(filesize, "v", temp);
g_free(temp);
- message = purple_xmlnode_to_str(uriobject, NULL);
+ temp = purple_xmlnode_to_str(uriobject, NULL);
+ message = purple_strreplace(temp, "'", "\""); + g_free(temp); #if PURPLE_VERSION_CHECK(3, 0, 0)
PurpleMessage *msg = purple_message_new_outgoing(swft->from, message, PURPLE_MESSAGE_SEND);
skypeweb_send_im(sa->pc, msg);
|