comparison libpurple/protocols/jabber/message.c @ 15649:e86623eb3b79

Receiving XEP 85 'gone' messages. Doesn't do anything because of the string freeze. This is akin to the MSN 'so-and-so has closed the conversation window' messages. Rlaager made a strong point to me that they're not altogether stalky, but can be useful.
author Sean Egan <seanegan@gmail.com>
date Fri, 16 Feb 2007 00:53:06 +0000
parents 193456f03b9c
children 94a19bde141d
comparison
equal deleted inserted replaced
15648:193456f03b9c 15649:e86623eb3b79
76 } else { 76 } else {
77 from = g_strdup(jid->domain); 77 from = g_strdup(jid->domain);
78 } 78 }
79 79
80 if(!jm->xhtml && !jm->body) { 80 if(!jm->xhtml && !jm->body) {
81 if(JM_STATE_COMPOSING == jm->chat_state) 81 if(JM_STATE_COMPOSING == jm->chat_state) {
82 serv_got_typing(jm->js->gc, from, 0, GAIM_TYPING); 82 serv_got_typing(jm->js->gc, from, 0, GAIM_TYPING);
83 else if(JM_STATE_PAUSED == jm->chat_state) 83 } else if(JM_STATE_PAUSED == jm->chat_state) {
84 serv_got_typing(jm->js->gc, from, 0, GAIM_TYPED); 84 serv_got_typing(jm->js->gc, from, 0, GAIM_TYPED);
85 else 85 } else if(JM_STATE_GONE == jm->chat_state) {
86 GaimConversation *conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM,
87 from, jm->js->gc->account);
88 if (conv) {
89 #if 0 /* String freeze */
90 gaim_conversation_write(conv, "",
91 "So and so has left the conversation.",
92 GAIM_MESSAGE_INFO, time(NULL));
93 #endif
94
95 }
86 serv_got_typing_stopped(jm->js->gc, from); 96 serv_got_typing_stopped(jm->js->gc, from);
97
98 } else {
99 serv_got_typing_stopped(jm->js->gc, from);
100 }
87 } else { 101 } else {
88 if(jbr) { 102 if(jbr) {
89 if(JM_TS_JEP_0085 == (jm->typing_style & JM_TS_JEP_0085)) { 103 if(JM_TS_JEP_0085 == (jm->typing_style & JM_TS_JEP_0085)) {
90 jbr->chat_states = JABBER_CHAT_STATES_SUPPORTED; 104 jbr->chat_states = JABBER_CHAT_STATES_SUPPORTED;
91 } else { 105 } else {