User can login without joining.

This commit is contained in:
Håvar Aambø Fosstveit committed 2019-10-24 10:32:28 +02:00
1 parent 7b65328789
commit 7e292b29c1
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -324,8 +324,11 @@ export default class RoomClient
const { displayName, picture } = data;
this.changeDisplayName(displayName);
this.changeProfilePicture(picture);
if (store.getState().room.joined)
{
this.changeDisplayName(displayName);
this.changeProfilePicture(picture);
}
store.dispatch(stateActions.setPicture(picture));
store.dispatch(stateActions.loggedIn());