# HG changeset patch # User Jeffrey Connelly # Date 1186856899 0 # Node ID 13abfc442ac665ac9a6d925f29e2ec2bf998268f # Parent b94f831750e0e5969a891c9e0e83f5d89005e8d6 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. diff -r b94f831750e0 -r 13abfc442ac6 libpurple/protocols/myspace/myspace.c --- 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. */