From 077c29503eebcfb8bac4bc8df29cf489b9c82969 Mon Sep 17 00:00:00 2001
From: Diego Mello <diegolmello@gmail.com>
Date: Fri, 20 Jul 2018 16:54:20 -0300
Subject: [PATCH] [FIX] Empty room name for livechat (#375)

<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->
@RocketChat/ReactNative

<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->
Closes #320
Closes #209

<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->
---
 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;
-- 
GitLab