[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 -->
This commit is contained in:
Diego Mello 2018-07-20 16:54:20 -03:00 committed by Guilherme Gazzo
parent 53ceaf858b
commit 077c29503e
1 changed files with 4 additions and 0 deletions

View File

@ -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;