Mercurial > pidgin
comparison libpurple/protocols/jabber/presence.c @ 28060:faf98a4b27d8
jabber: Fix typing notifications between 2.6.0 and <= 2.5.9.
If the Pidgin 2.6.0 user initiates a conversation, there will be no typing
notifications, as Pidgin <2.6.0 *has* entity capabilities but does not
advertise the Chat States feature (...ugh...).
Closes #9996. This also fixes Adium#12643.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 22 Aug 2009 18:29:44 +0000 |
parents | c585572e80dd |
children | d9eb51a3a3a2 |
comparison
equal
deleted
inserted
replaced
28057:f6cdf5f72479 | 28060:faf98a4b27d8 |
---|---|
469 jabber_iq_send(iq); | 469 jabber_iq_send(iq); |
470 | 470 |
471 jbr->commands_fetched = TRUE; | 471 jbr->commands_fetched = TRUE; |
472 } | 472 } |
473 | 473 |
474 #if 0 | |
475 /* | |
476 * Versions of libpurple before 2.6.0 didn't advertise this capability, so | |
477 * we can't yet use Entity Capabilities to determine whether or not the | |
478 * other client supports Entity Capabilities. | |
479 */ | |
474 if (jabber_resource_has_capability(jbr, "http://jabber.org/protocol/chatstates")) | 480 if (jabber_resource_has_capability(jbr, "http://jabber.org/protocol/chatstates")) |
475 jbr->chat_states = JABBER_CHAT_STATES_SUPPORTED; | 481 jbr->chat_states = JABBER_CHAT_STATES_SUPPORTED; |
476 else | 482 else |
477 jbr->chat_states = JABBER_CHAT_STATES_UNSUPPORTED; | 483 jbr->chat_states = JABBER_CHAT_STATES_UNSUPPORTED; |
484 #endif | |
478 | 485 |
479 out: | 486 out: |
480 g_free(userdata->from); | 487 g_free(userdata->from); |
481 g_free(userdata); | 488 g_free(userdata); |
482 } | 489 } |