gajim: fix for missing FN field

The full name is not always present. If so, fallback to nickname
or Jabber ID.

Based on a patch by Łukasz Faber <nnidyu@annwn.eu>
This commit is contained in:
Giovanni Campagna
2012-04-26 22:55:15 +02:00
parent e1c1fc73e2
commit ffb3462d54
+1 -1
View File
@@ -113,7 +113,7 @@ Source.prototype = {
},
_gotContactInfos: function(result, excp) {
this.title = result['FN'];
this.title = result['FN'] || result['NICKNAME'] || result['jid'];
let avatarUri = null;
if (result['PHOTO']) {