diff src/server.c @ 3787:aed40c72c818

[gaim-migrate @ 3927] more bugs in typing notificatin (surprise surprise) fixed by faceprint committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 22 Oct 2002 16:21:55 +0000
parents f53370197bb9
children fb519383a058
line wrap: on
line diff
--- a/src/server.c	Tue Oct 22 13:41:40 2002 +0000
+++ b/src/server.c	Tue Oct 22 16:21:55 2002 +0000
@@ -860,7 +860,8 @@
 	struct conversation *cnv = find_conversation(name);
 	 if (cnv) {
 		 set_convo_gc(cnv, gc);
-		 update_convo_status(cnv, state);
+		 cnv->typing_state = state;
+		 update_convo_status(cnv);
 	} else return;
 	 plugin_event(event_got_typing, gc, name);
 	 do_pounce(gc, name, OPT_POUNCE_TYPING);
@@ -874,10 +875,13 @@
 
 void serv_got_typing_stopped(struct gaim_connection *gc, char *name) {
 	struct conversation *c = find_conversation(name);
-	if (c && c->typing_timeout) {
+	if(!c)
+		return;
+	if (c->typing_timeout) {
 		gtk_timeout_remove (c->typing_timeout);
 	}
-	update_convo_status(c, NOT_TYPING);
+	c->typing_state = NOT_TYPING;
+	update_convo_status(c);
 }
 
 static void close_invite(GtkWidget *w, GtkWidget *w2)