mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-05 13:37:41 +02:00
Don't clear client screen on new poll join.
This commit is contained in:
parent
46b95e6f93
commit
92cfd39e5d
2 changed files with 2 additions and 1 deletions
|
@ -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});
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue