quick_frontend, primitivus (chat): pass a sorted list to Chat.setPresents
This commit is contained in:
parent
e597a804d9
commit
b76d829249
1 changed files with 15 additions and 12 deletions
|
|
@ -226,12 +226,11 @@ class Chat(PrimitivusWidget, QuickChat):
|
|||
self.chat_widget.header = urwid.AttrMap(self.subj_wid,'title')
|
||||
self.host.redraw()
|
||||
|
||||
def setPresents(self, param_nicks):
|
||||
"""Set the users presents in the contact list for a group chat
|
||||
@param nicks: list of nicknames
|
||||
def setPresents(self, nicks):
|
||||
"""Set the occupants of a group chat.
|
||||
|
||||
@param nicks (list[unicode]): sorted list of nicknames
|
||||
"""
|
||||
nicks = [unicode(nick) for nick in param_nicks] #FIXME: should be done in DBus bridge
|
||||
nicks.sort()
|
||||
QuickChat.setPresents(self, nicks)
|
||||
self.present_wid.changeValues(nicks)
|
||||
self.host.redraw()
|
||||
|
|
|
|||
Loading…
Reference in a new issue