From f0b0550cf8980a732d8eedcd669d0cb71c0b99a8 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Tue, 6 Oct 2015 13:45:59 +0200 Subject: [PATCH] Support message mentions Display mentions like messages that contain the user nick in Pidgin. --- tgp-msg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tgp-msg.c b/tgp-msg.c index d6d6290..4b26f2f 100644 --- a/tgp-msg.c +++ b/tgp-msg.c @@ -396,6 +396,11 @@ static void tgp_msg_display (struct tgl_state *TLS, struct tgp_msg_loading *C) { if (!M->message || tgp_outgoing_msg (TLS, M) || !tgl_get_peer_type (M->to_id)) { return; } + + // Mark messages that contain a mention like if they contained our current nick name + if (M->flags & TGLMF_MENTION) { + flags |= PURPLE_MESSAGE_NICK; + } // format the message text if (M->flags & TGLMF_SERVICE) {