changeset 29135:7a6c114c1a49

Use purple_prpl_got_media_caps in purple_prpl_got_user_status to remove media caps when the buddy goes offline.
author maiku@pidgin.im
date Tue, 20 Oct 2009 20:41:23 +0000
parents 4f14b03a9d50
children f3f7f683fda5
files libpurple/prpl.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/prpl.c	Tue Oct 20 20:06:25 2009 +0000
+++ b/libpurple/prpl.c	Tue Oct 20 20:41:23 2009 +0000
@@ -288,8 +288,10 @@
 
 	/* The buddy is no longer online, they are therefore by definition not
 	 * still typing to us. */
-	if (!purple_status_is_online(status))
+	if (!purple_status_is_online(status)) {
 		serv_got_typing_stopped(purple_account_get_connection(account), name);
+		purple_prpl_got_media_caps(account, name);
+	}
 }
 
 void purple_prpl_got_user_status_deactive(PurpleAccount *account, const char *name,