# HG changeset patch # User John Bailey # Date 1241093601 0 # Node ID f67f24008334fa09b169d30c0a99ced1eada84e9 # Parent 6faa5d5b4f44af4c5aa4e136cebfe53cb347e41d I was tired of most of us complaining about these things but never actually doing anything aobut it, so I decided to borrow zac's work. *** Plucked rev d4267261 (zacw@adiumx.com): Remove jabber_message_conv_closed and its caller so that we no longer send the "has left conversation" ("gone") notices. diff -r 6faa5d5b4f44 -r f67f24008334 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Thu Apr 30 04:59:11 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Apr 30 12:13:21 2009 +0000 @@ -2321,8 +2321,6 @@ g_free(jbr->thread_id); jbr->thread_id = NULL; } - if(jbr->chat_states == JABBER_CHAT_STATES_SUPPORTED) - jabber_message_conv_closed(js, who); } jabber_id_free(jid); diff -r 6faa5d5b4f44 -r f67f24008334 libpurple/protocols/jabber/message.c --- a/libpurple/protocols/jabber/message.c Thu Apr 30 04:59:11 2009 +0000 +++ b/libpurple/protocols/jabber/message.c Thu Apr 30 12:13:21 2009 +0000 @@ -1226,23 +1226,6 @@ return 0; } -void jabber_message_conv_closed(JabberStream *js, const char *who) -{ - 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); - jm->id = jabber_get_next_id(jm->js); - jm->typing_style = JM_TS_JEP_0085; - jm->chat_state = JM_STATE_GONE; - jabber_message_send(jm); - jabber_message_free(jm); -} - gboolean jabber_buzz_isenabled(JabberStream *js, const gchar *namespace) { return js->allowBuzz; } diff -r 6faa5d5b4f44 -r f67f24008334 libpurple/protocols/jabber/message.h --- a/libpurple/protocols/jabber/message.h Thu Apr 30 04:59:11 2009 +0000 +++ b/libpurple/protocols/jabber/message.h Thu Apr 30 12:13:21 2009 +0000 @@ -78,7 +78,6 @@ int jabber_message_send_chat(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags); unsigned int jabber_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state); -void jabber_message_conv_closed(JabberStream *js, const char *who); gboolean jabber_buzz_isenabled(JabberStream *js, const gchar *namespace);