Fix an ordering issues in the MUC userlist

users changing affiliations or roles weren’t moved around properly
This commit is contained in:
mathieui 2015-07-17 22:17:49 +02:00
parent 007459810a
commit f9bb45f6e5
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -1540,8 +1540,10 @@ class MucTab(ChatTab):
self.core.on_user_changed_status_in_private('%s/%s' %
(from_room, from_nick),
msg)
self.users.remove(user)
# finally, effectively change the user status
user.update(affiliation, show, status, role)
bisect.insort_left(self.users, user)
def disconnect(self):
"""