if no NICKNAME is present in our vcard, use FN fiield as our default nickname.
This commit is contained in:
parent
a23c825664
commit
cac46db66c
|
@ -958,6 +958,10 @@ class Interface:
|
|||
nick = array['NICKNAME']
|
||||
if nick:
|
||||
gajim.nicks[account] = nick
|
||||
if not gajim.nicks[account] and array.has_key('FN'):
|
||||
nick = array['FN']
|
||||
if nick:
|
||||
gajim.nicks[account] = nick
|
||||
if self.instances[account].has_key('profile'):
|
||||
win = self.instances[account]['profile']
|
||||
win.set_values(array)
|
||||
|
|
Loading…
Reference in New Issue