summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/roster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roster.py b/src/roster.py
index a288ec4d..d6fed94f 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -200,7 +200,7 @@ class Roster(object):
def update_contact_groups(self, contact):
"""Regenerate the RosterGroups when receiving a contact update"""
if not isinstance(contact, Contact):
- contact = self[contact]
+ contact = self.get_and_set(contact)
if not contact:
return
for name, group in self.groups.items():