[FIX] invalid user muted value

This commit is contained in:
Guilherme Gazzo 2018-06-10 22:01:39 -03:00
parent da3679d46a
commit 6c67179c3a
No known key found for this signature in database
GPG Key ID: 1F85C9AD922D0829
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export const merge = (subscription, room) => {
subscription.broadcast = room.broadcast;
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 {
subscription.muted = [];
}