diff libpurple/prpl.c @ 29704:9198a5d39c5c

Let _got_attention call _conversation_attention, instead of having prpls do it on incoming attentions
author Marcus Lundblad <ml@update.uu.se>
date Mon, 16 Nov 2009 20:45:56 +0000
parents 430badc49904
children ad119b77f941
line wrap: on
line diff
--- a/libpurple/prpl.c	Mon Nov 16 19:59:20 2009 +0000
+++ b/libpurple/prpl.c	Mon Nov 16 20:45:56 2009 +0000
@@ -503,7 +503,15 @@
 void
 purple_prpl_got_attention(PurpleConnection *gc, const char *who, guint type_code)
 {
+	PurpleConversation *conv = NULL;
+	PurpleAccount *account = purple_connection_get_account(gc);
+
 	got_attention(gc, -1, who, type_code);
+	conv = 
+		purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY, who, account);
+	if (conv)
+		purple_conversation_attention(conv, who, type_code, PURPLE_MESSAGE_RECV,
+			time(NULL));
 }
 
 void