User can login without joining.
parent
7b65328789
commit
7e292b29c1
|
|
@ -324,8 +324,11 @@ export default class RoomClient
|
||||||
|
|
||||||
const { displayName, picture } = data;
|
const { displayName, picture } = data;
|
||||||
|
|
||||||
this.changeDisplayName(displayName);
|
if (store.getState().room.joined)
|
||||||
this.changeProfilePicture(picture);
|
{
|
||||||
|
this.changeDisplayName(displayName);
|
||||||
|
this.changeProfilePicture(picture);
|
||||||
|
}
|
||||||
|
|
||||||
store.dispatch(stateActions.setPicture(picture));
|
store.dispatch(stateActions.setPicture(picture));
|
||||||
store.dispatch(stateActions.loggedIn());
|
store.dispatch(stateActions.loggedIn());
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ async function setupAuth(oidcIssuer)
|
||||||
|
|
||||||
const room = rooms.get(state.roomId);
|
const room = rooms.get(state.roomId);
|
||||||
|
|
||||||
room.peerAuthenticated(state.peerId);
|
room && room.peerAuthenticated(state.peerId);
|
||||||
|
|
||||||
res.send(httpHelper({
|
res.send(httpHelper({
|
||||||
success : true,
|
success : true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue