Skip to content

Commit

Permalink
state: Make sure new users are up-to-date on state that is not sent e…
Browse files Browse the repository at this point in the history
…very time. Fixes #163
  • Loading branch information
jeffkaufman committed Jan 6, 2021
1 parent 61d2220 commit 063ef39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,13 @@ def __init__(self, userid, name, last_heard_server_clock, delay_samples) -> None
self.send("repeats", state.repeats)
self.send("bpr", state.bpr)
self.send("tracks", tracks)
self.send("first_bucket", state.first_bucket)
if state.disable_song_video:
self.send("disableSongVideo", state.disable_song_video)
if state.song_start_clock:
self.send("song_start_clock", state.song_start_clock)
if state.song_end_clock:
self.send("song_end_clock", state.song_end_clock)

def allocate_twilio_token(self):
token = AccessToken(secrets["twilio"]["account_sid"],
Expand Down

0 comments on commit 063ef39

Please sign in to comment.