[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:
parent
53ceaf858b
commit
077c29503e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue