[FIX] invalid user muted value
This commit is contained in:
parent
da3679d46a
commit
6c67179c3a
|
@ -18,7 +18,7 @@ export const merge = (subscription, room) => {
|
||||||
subscription.broadcast = room.broadcast;
|
subscription.broadcast = room.broadcast;
|
||||||
|
|
||||||
if (room.muted && room.muted.length) {
|
if (room.muted && room.muted.length) {
|
||||||
subscription.muted = room.muted.map(user => ({ value: user }));
|
subscription.muted = room.muted.filter(user => user).map(user => ({ value: user }));
|
||||||
} else {
|
} else {
|
||||||
subscription.muted = [];
|
subscription.muted = [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue