Mercurial > pidgin
changeset 19946:4fb981e14f64
Do not update the unseen count for system messages.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 07 Sep 2007 05:28:35 +0000 |
parents | ee5b3ac0d41d |
children | c45e06d1901c |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Fri Sep 07 05:22:51 2007 +0000 +++ b/pidgin/gtkconv.c Fri Sep 07 05:28:35 2007 +0000 @@ -6614,9 +6614,11 @@ { if (conv == NULL || PIDGIN_IS_PIDGIN_CONVERSATION(conv)) return; - purple_conversation_set_data(conv, "unseen-count", - GINT_TO_POINTER(GPOINTER_TO_INT(purple_conversation_get_data(conv, "unseen-count")) + 1)); - purple_conversation_update(conv, PURPLE_CONV_UPDATE_UNSEEN); + if (flag & (PURPLE_MESSAGE_SEND | PURPLE_MESSAGE_RECV)) { + purple_conversation_set_data(conv, "unseen-count", + GINT_TO_POINTER(GPOINTER_TO_INT(purple_conversation_get_data(conv, "unseen-count")) + 1)); + purple_conversation_update(conv, PURPLE_CONV_UPDATE_UNSEEN); + } } static PurpleConversationUiOps conversation_ui_ops =