Fix the number of connected contacts/total number in the roster
This commit is contained in:
parent
6eac689993
commit
cbaa469298
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class Roster(object):
|
|||
"""
|
||||
n = 0
|
||||
for contact in self:
|
||||
if contact.resources:
|
||||
if len(contact):
|
||||
n += 1
|
||||
return n
|
||||
|
||||
|
|
Loading…
Reference in a new issue