[polari] lib: don't highlight messages in PM



commit d9a240753f10672f40710ddaf433abbf84f694b7
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Feb 24 15:16:16 2014 +0100

    lib: don't highlight messages in PM
    
    While it's weird to see your nick in a private conversation,
    it's even more weird to have it highlighted, and outright
    buggy for it to cause a notification (because gnome-shell
    already handles notifications for one-to-one text channels)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725065

 src/lib/polari-room.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lib/polari-room.c b/src/lib/polari-room.c
index ed5c545..cda1208 100644
--- a/src/lib/polari-room.c
+++ b/src/lib/polari-room.c
@@ -124,6 +124,8 @@ polari_room_should_highlight_message (PolariRoom *room,
 
   if (!priv->channel)
     return FALSE;
+  if (priv->type != TP_HANDLE_TYPE_ROOM)
+    return FALSE;
 
   conn = tp_channel_get_connection (room->priv->channel);
   self = tp_connection_get_self_contact (conn);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]