Only look for and add custom smileys to incoming messages that are going to

Sun, 26 Apr 2009 02:27:08 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Sun, 26 Apr 2009 02:27:08 +0000
changeset 26867
20bf84d510d8
parent 26866
4de62720eea9
child 26868
5c99daf94155
child 26872
d6949e517f1f

Only look for and add custom smileys to incoming messages that are going to
end up being displayed in a conversation window (i.e. not headline messages).
Closes #7516.

ChangeLog file | annotate | diff | comparison | revisions
libpurple/protocols/jabber/message.c file | annotate | diff | comparison | revisions
--- a/ChangeLog	Sun Apr 26 02:18:03 2009 +0000
+++ b/ChangeLog	Sun Apr 26 02:27:08 2009 +0000
@@ -24,6 +24,8 @@
 	  client supports it.
 	* The set_chat_topic function can unset the chat topic.
 	* Fix crash on connection with recent gstreamer0.10-plugins-bad.
+	* Don't create a new conversation window for incoming messages of
+	  type 'headline'.
 
 	IRC:
 	* Correctly handle WHOIS for users who are joined to a large number of
--- a/libpurple/protocols/jabber/message.c	Sun Apr 26 02:18:03 2009 +0000
+++ b/libpurple/protocols/jabber/message.c	Sun Apr 26 02:27:08 2009 +0000
@@ -640,7 +640,8 @@
 							}
 
 							jabber_id_free(jid);
-						} else {
+						} else if (jm->type == JABBER_MESSAGE_NORMAL ||
+						           jm->type == JABBER_MESSAGE_CHAT) {
 							conv =
 								purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
 									who, account);

mercurial