From 6c67179c3a36e8d35fd407675b686fb39a407391 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Sun, 10 Jun 2018 22:01:39 -0300 Subject: [PATCH] [FIX] invalid user muted value --- app/lib/methods/helpers/mergeSubscriptionsRooms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/helpers/mergeSubscriptionsRooms.js b/app/lib/methods/helpers/mergeSubscriptionsRooms.js index 371ddaf3..7e7f839e 100644 --- a/app/lib/methods/helpers/mergeSubscriptionsRooms.js +++ b/app/lib/methods/helpers/mergeSubscriptionsRooms.js @@ -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 = []; }