Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Jul 4, 2022
1 parent 41e7418 commit 81526cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/ClientContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const ClientProvider: FC = ({ children }) => {
isAuthenticated: Boolean(client),
isPasswordlessUser,
userName: client?.getUserIdLocalpart(),
error: undefined,
});
})
.catch(() => {
Expand All @@ -134,6 +135,7 @@ export const ClientProvider: FC = ({ children }) => {
isAuthenticated: false,
isPasswordlessUser: false,
userName: null,
error: undefined,
});
});
}, []);
Expand Down Expand Up @@ -163,6 +165,7 @@ export const ClientProvider: FC = ({ children }) => {
isAuthenticated: true,
isPasswordlessUser: false,
userName: client.getUserIdLocalpart(),
error: undefined,
});
},
[client]
Expand All @@ -183,6 +186,7 @@ export const ClientProvider: FC = ({ children }) => {
isAuthenticated: true,
isPasswordlessUser: session.passwordlessUser,
userName: newClient.getUserIdLocalpart(),
error: undefined,
});
} else {
clearSession();
Expand All @@ -193,6 +197,7 @@ export const ClientProvider: FC = ({ children }) => {
isAuthenticated: false,
isPasswordlessUser: false,
userName: null,
error: undefined,
});
}
},
Expand Down Expand Up @@ -251,6 +256,7 @@ export const ClientProvider: FC = ({ children }) => {
logout,
userName,
setClient,
error: undefined,
}),
[
loading,
Expand Down
2 changes: 2 additions & 0 deletions src/room/InCallView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ interface Props {
onLeave: () => void;
isScreensharing: boolean;
screenshareFeeds: CallFeed[];
localScreenshareFeed: CallFeed;
roomId: string;
unencryptedEventsFromUsers: Set<string>;
}
Expand All @@ -94,6 +95,7 @@ export function InCallView({
toggleScreensharing,
isScreensharing,
screenshareFeeds,
localScreenshareFeed,
roomId,
unencryptedEventsFromUsers,
}: Props) {
Expand Down
2 changes: 1 addition & 1 deletion src/room/LobbyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface Props {
microphoneMuted: boolean;
toggleLocalVideoMuted: () => void;
toggleMicrophoneMuted: () => void;
localVideoMuted: () => void;
localVideoMuted: boolean;
roomId: string;
}
export function LobbyView({
Expand Down

0 comments on commit 81526cb

Please sign in to comment.