Skip to content
Snippets Groups Projects
Commit 3785c703 authored by Simon Rainer's avatar Simon Rainer
Browse files

Rename sync_to_me command to sync_to_time

parent fa78d6de
No related branches found
No related tags found
1 merge request!5Button icons
......@@ -27,7 +27,7 @@ export const requestSyncToMe = (seconds: number) => {
return {
type: "REDUX_WEBSOCKET::SEND",
payload: {
command: "sync_to_me",
command: "sync_to_time",
playback_time: seconds,
target: "server",
},
......
......@@ -127,7 +127,7 @@ class ClientGroup:
set_pb_time_filled_req["data"] = min_time
await self._send_command(set_pb_time_filled_req)
async def sync_to_me(self, playback_time):
async def sync_to_time(self, playback_time):
set_pb_time_filled_req = SET_PLAYBACK_TIME_REQUEST.copy()
set_pb_time_filled_req["data"] = playback_time
await self._send_command(set_pb_time_filled_req)
......@@ -140,14 +140,14 @@ class ClientGroup:
await self.pause()
elif command == "sync":
await self.sync()
elif command == "sync_to_me":
elif command == "sync_to_time":
if "playback_time" not in parsed:
print(
f"Ignoring sync_to_me command, because playback_time is missing: <{parsed}>"
f"Ignoring sync_to_time command, because playback_time is missing: <{parsed}>"
)
return
playback_time = parsed["playback_time"]
await self.sync_to_me(playback_time)
await self.sync_to_time(playback_time)
elif command == "show":
await self.show_connected_clients()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment