Support message mentions

Display mentions like messages that contain the user nick in Pidgin.
This commit is contained in:
mjentsch 2015-10-06 13:45:59 +02:00
parent ba8d9cf378
commit f0b0550cf8

View file

@ -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) {