Skip to content

Commit

Permalink
fix: whiteboard state on role change
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Apr 5, 2024
1 parent 8c8e776 commit 4e18900
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/prebuilt-react-integration/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ import { getRoomCodeFromUrl } from './utils';
export default function App() {
const roomCode = getRoomCodeFromUrl();

return <HMSPrebuilt roomCode={roomCode} />;
return (
<HMSPrebuilt
roomCode={roomCode}
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class WhiteboardInteractivityCenter implements HMSWhiteboardInteractivity
const whiteboards = this.store.getWhiteboards();

for (const whiteboard of whiteboards.values()) {
if (whiteboard.open && whiteboard.url) {
if (whiteboard.url) {
const response = await this.transport.signal.getWhiteboard({ id: whiteboard.id });
const newWhiteboard: HMSWhiteboard = {
...whiteboard,
Expand Down

0 comments on commit 4e18900

Please sign in to comment.