[Jim++] do not print (None) if status msg is None on chat
This commit is contained in:
parent
e8223e1d9d
commit
ea50611b8f
|
@ -882,8 +882,12 @@ class RosterWindow:
|
|||
if contact.resource != '':
|
||||
name += '/' + contact.resource
|
||||
uf_show = helpers.get_uf_show(show)
|
||||
if status:
|
||||
ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, status),
|
||||
'status')
|
||||
else: # No status message
|
||||
ctrl.print_conversation(_('%s is now %s') % (name, uf_show),
|
||||
'status')
|
||||
if contact == gajim.contacts.get_contact_with_highest_priority(account,
|
||||
contact.jid):
|
||||
ctrl.draw_banner()
|
||||
|
|
Loading…
Reference in New Issue