summaryrefslogtreecommitdiff
path: root/pidgin
diff options
context:
space:
mode:
authorAnkit Vani <a@nevitus.org>2013-09-30 14:07:42 +0530
committerAnkit Vani <a@nevitus.org>2013-09-30 14:07:42 +0530
commit81d1a2366d98f21d7832827e6f4508d9bd484119 (patch)
treebc116c8f933ae064114597c829515fe48df6824e /pidgin
parent21552664fea6e92bddf6af27381eecb815d71bb8 (diff)
downloadpidgin-81d1a2366d98f21d7832827e6f4508d9bd484119.tar.gz
Only update typing icon if conversation is an IM
Diffstat (limited to 'pidgin')
-rw-r--r--pidgin/gtkconv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
index 04aba3729b..49d557ba72 100644
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -3825,12 +3825,14 @@ update_typing_message(PidginConversation *gtkconv, const char *message)
static void
update_typing_icon(PidginConversation *gtkconv)
{
- PurpleIMConversation *im = PURPLE_IM_CONVERSATION(gtkconv->active_conv);
+ PurpleIMConversation *im;
char *message = NULL;
- if (im == NULL)
+ if (!PURPLE_IS_IM_CONVERSATION(gtkconv->active_conv))
return;
+ im = PURPLE_IM_CONVERSATION(gtkconv->active_conv);
+
if (purple_im_conversation_get_typing_state(im) == PURPLE_IM_NOT_TYPING) {
#ifdef RESERVE_LINE
update_typing_message(gtkconv, NULL);