From 077c29503eebcfb8bac4bc8df29cf489b9c82969 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 20 Jul 2018 16:54:20 -0300 Subject: [PATCH] [FIX] Empty room name for livechat (#375) @RocketChat/ReactNative Closes #320 Closes #209 --- app/lib/methods/helpers/mergeSubscriptionsRooms.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/methods/helpers/mergeSubscriptionsRooms.js b/app/lib/methods/helpers/mergeSubscriptionsRooms.js index 7e7f839e7..a95d59b95 100644 --- a/app/lib/methods/helpers/mergeSubscriptionsRooms.js +++ b/app/lib/methods/helpers/mergeSubscriptionsRooms.js @@ -33,6 +33,10 @@ export const merge = (subscription, room) => { subscription.notifications = false; } + if (!subscription.name) { + subscription.name = subscription.fname; + } + subscription.blocker = !!subscription.blocker; subscription.blocked = !!subscription.blocked; return subscription;