Store username for every room (#1381)
* store username for every room * add missing fun
This commit is contained in:
@ -24,6 +24,7 @@ type MobileMenuProps = {
|
||||
setAppState: any;
|
||||
elements: readonly NonDeletedExcalidrawElement[];
|
||||
onRoomCreate: () => void;
|
||||
onUsernameChange: (username: string) => void;
|
||||
onRoomDestroy: () => void;
|
||||
onLockToggle: () => void;
|
||||
};
|
||||
@ -35,6 +36,7 @@ export function MobileMenu({
|
||||
exportButton,
|
||||
setAppState,
|
||||
onRoomCreate,
|
||||
onUsernameChange,
|
||||
onRoomDestroy,
|
||||
onLockToggle,
|
||||
}: MobileMenuProps) {
|
||||
@ -87,7 +89,7 @@ export function MobileMenu({
|
||||
isCollaborating={appState.isCollaborating}
|
||||
collaboratorCount={appState.collaborators.size}
|
||||
username={appState.username}
|
||||
onUsernameChange={(username) => setAppState({ username })}
|
||||
onUsernameChange={onUsernameChange}
|
||||
onRoomCreate={onRoomCreate}
|
||||
onRoomDestroy={onRoomDestroy}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user