auto_join_3.3
Håvar Aambø Fosstveit 2020-03-23 22:52:53 +01:00
parent 002950d708
commit 764e02c732
2 changed files with 5 additions and 5 deletions

View File

@ -2117,7 +2117,7 @@ export default class RoomClient
if (peerId === this._peerId) if (peerId === this._peerId)
{ {
store.dispatch(meActions.addRole({ role })); store.dispatch(meActions.addRole(role));
store.dispatch(requestActions.notify( store.dispatch(requestActions.notify(
{ {
@ -2128,7 +2128,7 @@ export default class RoomClient
})); }));
} }
else else
store.dispatch(peerActions.addPeerRole({ peerId, role })); store.dispatch(peerActions.addPeerRole(peerId, role));
break; break;
} }
@ -2139,7 +2139,7 @@ export default class RoomClient
if (peerId === this._peerId) if (peerId === this._peerId)
{ {
store.dispatch(meActions.removeRole({ role })); store.dispatch(meActions.removeRole(role));
store.dispatch(requestActions.notify( store.dispatch(requestActions.notify(
{ {
@ -2150,7 +2150,7 @@ export default class RoomClient
})); }));
} }
else else
store.dispatch(peerActions.removePeerRole({ peerId, role })); store.dispatch(peerActions.removePeerRole(peerId, role));
break; break;
} }

View File

@ -10,7 +10,7 @@ export const loggedIn = (flag) =>
payload : { flag } payload : { flag }
}); });
export const addRole = ({ role }) => export const addRole = (role) =>
({ ({
type : 'ADD_ROLE', type : 'ADD_ROLE',
payload : { role } payload : { role }