# HG changeset patch # User maiku@pidgin.im # Date 1256071283 0 # Node ID 7a6c114c1a4977c8727b4c5ca6d5aa55123c2cbf # Parent 4f14b03a9d5051af384cdd2fde2d65cb41239745 Use purple_prpl_got_media_caps in purple_prpl_got_user_status to remove media caps when the buddy goes offline. diff -r 4f14b03a9d50 -r 7a6c114c1a49 libpurple/prpl.c --- 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,