soc.2009.telepathy: f5ff5fa6: Check for ChatState interface before cal...
sttwister at soc.pidgin.im
sttwister at soc.pidgin.im
Thu Jun 25 18:15:54 EDT 2009
-----------------------------------------------------------------
Revision: f5ff5fa68dfa9abaf2ce751189d3e1bbe9464c0b
Ancestor: 4f86a0954bf09d2422fa718baea766e3829bcbeb
Author: sttwister at soc.pidgin.im
Date: 2009-06-25T16:15:32
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/f5ff5fa68dfa9abaf2ce751189d3e1bbe9464c0b
Modified files:
libpurple/protocols/telepathy/telepathy.c
ChangeLog:
Check for ChatState interface before calling set_chat_state
-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c ab4068f8ae82bcf7347c32f0e71b534dc64891f2
+++ libpurple/protocols/telepathy/telepathy.c 59ce52ea2d7bf05b9b3e8eae0f415b14f86770b6
@@ -409,6 +409,13 @@ telepathy_send_typing (PurpleConnection
return 0;
}
+ /* Check that the ChatState interface is actually implemented */
+ if (!tp_proxy_has_interface_by_id (channel,
+ TP_IFACE_QUARK_CHANNEL_INTERFACE_CHAT_STATE))
+ {
+ return;
+ }
+
purple_debug_info("telepathy", "Sending typing notification to %s\n", name);
switch (state)
More information about the Commits
mailing list