[gnome-shell-extensions] gajim: fix for missing FN field
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] gajim: fix for missing FN field
- Date: Thu, 26 Apr 2012 20:58:44 +0000 (UTC)
commit ffb3462d54df5266a5ab832cf2f52b450944a3b4
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Apr 26 22:55:15 2012 +0200
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>
extensions/gajim/extension.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/gajim/extension.js b/extensions/gajim/extension.js
index 08e10fd..47ca915 100644
--- a/extensions/gajim/extension.js
+++ b/extensions/gajim/extension.js
@@ -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']) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]