Don't clear client screen on new poll join.

This commit is contained in:
armored-dragon 2024-09-13 17:30:22 -05:00
parent 46b95e6f93
commit 92cfd39e5d
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B
2 changed files with 2 additions and 1 deletions

View file

@ -447,7 +447,7 @@
pollStats = {iterations: 0, responses: {}, winnerSelected: false, winnerName: "", votesReceived: 0, votesCounted: 0 }
poll = message.poll;
// Play sound for new poll
_emitSound("new_prompt");
_emitEvent({type: "poll_prompt", poll: message.poll});

View file

@ -953,6 +953,7 @@ Rectangle {
// Populate the client view of the current question and options
case "poll_prompt":
active_polls_list.index_selected = -1; // Unselect whatever poll was selected (If one was selected)
if (poll.question == message.poll.question) return;
// Clear options
poll_option_model.clear();