adium 2245:394c53133e85: Force a status update on a contact when...

commits at adium.im commits at adium.im
Tue May 19 06:07:25 UTC 2009


details:	http://hg.adium.im/adium/rev/394c53133e85
revision:	2245:394c53133e85
author:		Zachary West <zacw at adium.im>
date:		Tue May 19 02:07:18 2009 -0400

Force a status update on a contact when we add it from libpurple, which fixes offline message display for things like "Not Authorized" or server errors in XMPP, or offline messages on other services.

diffstat:

 Plugins/Purple Service/adiumPurpleSignals.m |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 919c535bed68 -r 394c53133e85 Plugins/Purple Service/adiumPurpleSignals.m
--- a/Plugins/Purple Service/adiumPurpleSignals.m	Tue May 19 01:47:05 2009 -0400
+++ b/Plugins/Purple Service/adiumPurpleSignals.m	Tue May 19 02:07:18 2009 -0400
@@ -201,6 +201,9 @@
 			[account updateContact:listContact
 						   toAlias:[NSString stringWithUTF8String:alias]];
 		}
+		
+		// Force a status update for the user. Useful for things like XMPP which might display an error message for an offline contact.
+		buddy_status_changed_cb(buddy, NULL, purple_presence_get_active_status(purple_buddy_get_presence(buddy)), PURPLE_BUDDY_NONE);
 	}
 }
 




More information about the commits mailing list