aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-17 20:50:06 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-17 21:09:31 +0800
commit7c1c77662edf9ef232bb7648fa6c516d31de3648 (patch)
tree8999eca6cf5926d84f8d21caa9d8f237fc3e011a
parent8aa1b96e086393fe32443e40ab2c81a5026bbfd2 (diff)
downloadgsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.tar
gsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.tar.gz
gsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.tar.bz2
gsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.tar.lz
gsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.tar.xz
gsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.tar.zst
gsoc2013-empathy-7c1c77662edf9ef232bb7648fa6c516d31de3648.zip
Fix urgency hint for MUCs
-rw-r--r--src/empathy-chat-window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index e6823344e..145d45e7f 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -954,7 +954,13 @@ chat_window_new_message_cb (EmpathyChat *chat,
return;
}
- if (empathy_chat_get_members_count (chat) > 2) {
+ /* If empathy_chat_is_room() returns TRUE, that means it's a named MUC.
+ * If empathy_chat_get_remote_contact() returns NULL, that means it's
+ * an unamed MUC (msn-like).
+ * In case of a MUC, we set urgency only if the message contains our
+ * alias. */
+ if (empathy_chat_is_room (chat) ||
+ empathy_chat_get_remote_contact (chat) == NULL) {
needs_urgency = empathy_message_should_highlight (message);
} else {
needs_urgency = TRUE;