mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Fix remoteUserIds
This commit is contained in:
parent
5819654bc7
commit
a7ba511278
@ -165,6 +165,11 @@ function reducer(state, action) {
|
||||
if (event) {
|
||||
const fromId = event.getStateKey();
|
||||
|
||||
remoteUserIds =
|
||||
fromId === state.localUserId || eventsByUserId.has(fromId)
|
||||
? state.remoteUserIds
|
||||
: [...state.remoteUserIds, fromId];
|
||||
|
||||
eventsByUserId = new Map(state.eventsByUserId);
|
||||
|
||||
if (event.getStateKey() === state.localUserId) {
|
||||
@ -194,11 +199,6 @@ function reducer(state, action) {
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
remoteUserIds =
|
||||
fromId === state.localUserId || eventsByUserId.has(fromId)
|
||||
? state.remoteUserIds
|
||||
: [...state.remoteUserIds, fromId];
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user