changeset 18899:13abfc442ac6

Use msim_uid2username_from_blist() to resolve uid -> username on incoming messages, if it exists, now that this function works. Now receiving incoming messages is MUCH faster, since it doesn't require a trip to the server to resolve the username on every request.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sat, 11 Aug 2007 18:28:19 +0000
parents b94f831750e0
children c41077a95d6c
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Sat Aug 11 18:18:52 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Sat Aug 11 18:28:19 2007 +0000
@@ -2065,13 +2065,7 @@
 		/* 'f' = userid message is from, in buddy messages */
 		uid = msim_msg_get_integer(msg, "f");
 
-		/* TODO: Make caching work. Currently it is commented out because
-		 * it crashes for unknown reasons, memory realloc error. */
-#if 0
 		username = msim_uid2username_from_blist(session, uid); 
-#else
-		username = NULL; 
-#endif
 
 		if (username) {
 			/* Know username already, use it. */