From 55b1e690c595ac6b027cf4bd1465c6676214bb50 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 16 Apr 2010 01:15:36 +0200 Subject: Since the home/timeline response can (and often does) come in before the user list, call twitter_add_buddy() on all incoming tweets to avoid getting tweets from people who aren't listed yet. --- protocols/twitter/twitter_lib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols') diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 04e8ef95..d58afd73 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -473,6 +473,8 @@ static void twitter_private_message_chat(struct im_connection *ic, GSList *list) if( mode_one ) text = g_strdup_printf( "\002<\002%s\002>\002 %s", status->user->screen_name, status->text ); + else + twitter_add_buddy(ic, status->user->screen_name, status->user->name); imcb_buddy_msg( ic, mode_one ? from : status->user->screen_name, -- cgit v1.2.3