Fix an ordering issues in the MUC userlist
users changing affiliations or roles weren’t moved around properly
This commit is contained in:
parent
007459810a
commit
f9bb45f6e5
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue