adium: d4267261: Remove jabber_message_conv_closed and it...
zacw at adiumx.com
zacw at adiumx.com
Thu Apr 30 01:06:49 EDT 2009
-----------------------------------------------------------------
Revision: d426726115c911c7b6006becc903308f988dd7cb
Ancestor: b52b44da31899f9e466826f2ff30c9c6f88f21bc
Author: zacw at adiumx.com
Date: 2009-04-30T04:59:18
Branch: im.pidgin.adium
URL: http://d.pidgin.im/viewmtn/revision/info/d426726115c911c7b6006becc903308f988dd7cb
Modified files:
libpurple/protocols/jabber/jabber.c
libpurple/protocols/jabber/message.c
libpurple/protocols/jabber/message.h
ChangeLog:
Remove jabber_message_conv_closed and its caller so that we no longer send the "has left conversation" ("gone") notices.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c 8a2ea03b1b52a051312222af7691be2e0ab5acb1
+++ libpurple/protocols/jabber/jabber.c 47eb0804d409f2f212ded5a5116aca7485ec62b8
@@ -2106,8 +2106,6 @@ void jabber_convo_closed(PurpleConnectio
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);
============================================================
--- libpurple/protocols/jabber/message.c fb024f59b1640c23a575f1f234ed89940c010cc1
+++ libpurple/protocols/jabber/message.c cc93ee89db735cf1d1b99648f866b87a5dd720bf
@@ -1215,23 +1215,6 @@ unsigned int jabber_send_typing(PurpleCo
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 *shortname, const gchar *namespace) {
return js->allowBuzz;
}
============================================================
--- libpurple/protocols/jabber/message.h 7fb848f03ba2d8c60a187176280c2e44ab407906
+++ libpurple/protocols/jabber/message.h f0a6deaaeda58006cda77b03dd3e0c213f299843
@@ -78,7 +78,6 @@ unsigned int jabber_send_typing(PurpleCo
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 *shortname, const gchar *namespace);
More information about the Commits
mailing list