Skip to content

Commit

Permalink
fix(anon): hopefully fix the "anon joins" message
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Jan 25, 2020
1 parent 4b32720 commit 31276df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ const init = serverUrl => {
socket.on('connected', () => {
state.status = ConnectionEnum.CONNECTED;

socket.emit('join room', state.roomName);
socket.emit('set user', state.settings);
socket.emit('join room', {
room: state.roomName,
settings: state.settings
});
});

socket.on('connect_error', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const SettingsView: FunctionComponent<SettingsProps> = props => {
</div>

<h4>
Server URL (requires restart)
Server URL
<p onClick={() => (settings.url = DEFAULT_SERVER_URL)}>
default: {DEFAULT_SERVER_URL}
</p>
Expand Down

0 comments on commit 31276df

Please sign in to comment.