- Sort by speaking alongside speaking start time fixes #73
This commit is contained in:
parent
405e0320c4
commit
cda5bc0c81
2 changed files with 3 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ class DiscordConnector:
|
|||
self.voice_overlay.delete_avatar(user["id"])
|
||||
if "lastspoken" not in user: # Still nothing?
|
||||
user["lastspoken"] = 0 # EEEEPOOCH EEEEEPOCH! BELIEVE MEEEE
|
||||
if "speaking" not in user:
|
||||
user["speaking"] = False
|
||||
self.userlist[user["id"]] = user
|
||||
|
||||
def on_message(self, message):
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ class VoiceOverlayWindow(OverlayWindow):
|
|||
self.userlist.sort(key=lambda x: x["id"])
|
||||
elif self.order == 2: # Spoken sort
|
||||
self.userlist.sort(key=lambda x: x["lastspoken"], reverse=True)
|
||||
self.userlist.sort(key=lambda x: x["speaking"], reverse=True)
|
||||
else: # Name sort
|
||||
self.userlist.sort(key=lambda x: x["friendlyname"])
|
||||
screen = self.get_screen()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue