mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Added sorting by trusted status
This commit is contained in:
parent
01f5d33be4
commit
eaa4315857
@ -281,6 +281,8 @@ class Conversations():
|
||||
|
||||
item.add_widget(item.iconr)
|
||||
|
||||
item.trusted = self.app.sideband.is_trusted(context_dest)
|
||||
|
||||
self.added_item_dests.append(context_dest)
|
||||
self.list.add_widget(item)
|
||||
|
||||
@ -296,7 +298,7 @@ class Conversations():
|
||||
if w.text != disp_name:
|
||||
w.text = disp_name
|
||||
|
||||
self.list.children.sort(key=lambda w: w.last_activity)
|
||||
self.list.children.sort(key=lambda w: (w.trusted, w.last_activity))
|
||||
|
||||
RNS.log("Updated conversation list widgets in "+RNS.prettytime(time.time()-us), RNS.LOG_DEBUG)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user