fix online / total transport count
This commit is contained in:
parent
be81dbcc40
commit
9a3505a9e3
|
@ -276,8 +276,12 @@ class Contacts:
|
||||||
else:
|
else:
|
||||||
contact_groups = contact.groups
|
contact_groups = contact.groups
|
||||||
if not contact_groups:
|
if not contact_groups:
|
||||||
# Contact is not in a group, so count it in General group
|
# Contact is not in a group, so count it in General or
|
||||||
contact_groups.append(_('General'))
|
# Transports group
|
||||||
|
if common.gajim.jid_is_transport(jid):
|
||||||
|
contact_groups = [_('Transports')]
|
||||||
|
else:
|
||||||
|
contact_groups = [_('General')]
|
||||||
for group in groups:
|
for group in groups:
|
||||||
if group in contact_groups:
|
if group in contact_groups:
|
||||||
in_groups = True
|
in_groups = True
|
||||||
|
|
Loading…
Reference in New Issue