diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-20 16:13:49 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-21 12:31:10 +0100 |
commit | a85a67c99ab9085eafc8afe17437253a082e0e08 (patch) | |
tree | 9eb6d884f6d46272e5e869aee55911037e514417 /src/conn-aliasing.c | |
parent | 6ba62283b7052ff49cc223b65d4ac06937ec1043 (diff) | |
download | telepathy-gabble-a85a67c99ab9085eafc8afe17437253a082e0e08.tar.gz |
Ignore empty name='' attributes on the roster.
Previously, if a roster item had an empty name='' attribute, Gabble
would be content to show this to the user, and never try PEP or their
vCard for a better nickname.
The empty alias is never useful.
Diffstat (limited to 'src/conn-aliasing.c')
-rw-r--r-- | src/conn-aliasing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn-aliasing.c b/src/conn-aliasing.c index eeaa66516..46bc80e3e 100644 --- a/src/conn-aliasing.c +++ b/src/conn-aliasing.c @@ -887,7 +887,7 @@ _gabble_connection_get_cached_alias (GabbleConnection *conn, GABBLE_CONNECTION_ALIAS_NONE); tmp = gabble_roster_handle_get_name (conn->roster, handle); - if (NULL != tmp) + if (!tp_str_empty (tmp)) { maybe_set (alias, tmp); return GABBLE_CONNECTION_ALIAS_FROM_ROSTER; |