From edd86b60e2beb57fb73bce692e0c2e6fa6df6eb1 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Wed, 30 Dec 2015 17:50:05 +0100 Subject: [PATCH] Allow sending "cleartext" img tags in Adium Adium does not use tags for outgoing inline pictures in messages, but initalizes a file transfer on its own. Additionally, they also don't escape outgoing user-entered HTML, which means we must not search for outgoing HTML tags when using Adium, otherwise we would skip actual message content. --- tgp-msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgp-msg.c b/tgp-msg.c index 93eaaba..24d47a8 100644 --- a/tgp-msg.c +++ b/tgp-msg.c @@ -285,6 +285,8 @@ void send_inline_picture_done (struct tgl_state *TLS, void *extra, int success, } int tgp_msg_send (struct tgl_state *TLS, const char *message, tgl_peer_id_t to) { + +#ifndef __ADIUM_ // search for outgoing embedded image tags and send them gchar *img = NULL; gchar *stripped = NULL; @@ -329,7 +331,6 @@ int tgp_msg_send (struct tgl_state *TLS, const char *message, tgl_peer_id_t to) return -1; } -#ifndef __ADIUM_ /* Adium won't escape any HTML markup and just pass any user-input through, while Pidgin will replace special chars with the escape chars and also add