diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-26 18:35:22 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-26 18:35:22 +0000 |
commit | b7b6889d4e040a8cbdec57d508c59d756a8c3939 (patch) | |
tree | 80d657c1b0e02c5e3cf77c5e3d9640163f1d31d5 /src/roster.py | |
parent | 390e952829dfbf9bed2cf4647e07ab9249d59cf2 (diff) | |
download | poezio-b7b6889d4e040a8cbdec57d508c59d756a8c3939.tar.gz poezio-b7b6889d4e040a8cbdec57d508c59d756a8c3939.tar.bz2 poezio-b7b6889d4e040a8cbdec57d508c59d756a8c3939.tar.xz poezio-b7b6889d4e040a8cbdec57d508c59d756a8c3939.zip |
open conversation only if a message has a body. And use the group 'none' for contacts in no groups
Diffstat (limited to 'src/roster.py')
-rw-r--r-- | src/roster.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/roster.py b/src/roster.py index e6be9208..02c88636 100644 --- a/src/roster.py +++ b/src/roster.py @@ -22,6 +22,8 @@ class Roster(object): def __init__(self): self._contacts = {} # key = jid; value = Contact() self._roster_groups = [] + new_group = RosterGroup("none") + self._roster_groups.append(new_group) def add_contact(self, contact, jid): """ @@ -44,6 +46,8 @@ class Roster(object): Add or remove RosterGroup if needed """ # add the contact to each group he is in + if not len(groups): + groups = ['none'] for group in groups: if group in contact._groups: continue |