changeset 19310:4e55f09f633c

Only send conversation close notices on XMPP when the typing notification preference is turned on
author Sean Egan <seanegan@gmail.com>
date Fri, 17 Aug 2007 20:58:34 +0000
parents 08be7c67bd18
children 03ff8d52ab2e
files COPYRIGHT ChangeLog libpurple/protocols/jabber/message.c
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Fri Aug 17 19:36:58 2007 +0000
+++ b/COPYRIGHT	Fri Aug 17 20:58:34 2007 +0000
@@ -301,6 +301,7 @@
 Luciano Miguel Ferreira Rocha
 Andrew Rodland
 Miguel Rodríguez (migrax)
+Bob Rossi
 Jason Roth
 Jean-Francois Roy
 Sam S.
--- a/ChangeLog	Fri Aug 17 19:36:58 2007 +0000
+++ b/ChangeLog	Fri Aug 17 20:58:34 2007 +0000
@@ -12,6 +12,10 @@
 	* Bonjour plugin uses native Avahi instead of Howl
 	* Bonjour plugin supports Buddy Icons
 
+	XMPP:
+	* Only report conversation close when 'send typing notifications'
+	  preference is turned on (Bob Rossi)
+
 	Pidgin:
 	* Show current outgoing conversation formatting on the font label on
 	  the toolbar
--- a/libpurple/protocols/jabber/message.c	Fri Aug 17 19:36:58 2007 +0000
+++ b/libpurple/protocols/jabber/message.c	Fri Aug 17 20:58:34 2007 +0000
@@ -675,7 +675,11 @@
 
 void jabber_message_conv_closed(JabberStream *js, const char *who)
 {
-	JabberMessage *jm = g_new0(JabberMessage, 1);
+	JabberMessage *jm;
+	if (!purple_prefs_get_bool("/purple/conversations/im/send_typing"))
+		return;
+
+	jm  = g_new0(JabberMessage, 1);
 	jm->js = js;
 	jm->type = JABBER_MESSAGE_CHAT;
 	jm->to = g_strdup(who);