From 5192875052c70424fdd562d86b22adecfce957fa Mon Sep 17 00:00:00 2001 From: Aleksander Nicacio da Silva Date: Mon, 24 Apr 2023 10:45:03 -0300 Subject: [PATCH] fix: Fixed livechat notifications displaying [object Promise] on the title --- apps/meteor/server/lib/rooms/roomTypes/livechat.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/meteor/server/lib/rooms/roomTypes/livechat.ts b/apps/meteor/server/lib/rooms/roomTypes/livechat.ts index 13b75405d7d54..88393088541eb 100644 --- a/apps/meteor/server/lib/rooms/roomTypes/livechat.ts +++ b/apps/meteor/server/lib/rooms/roomTypes/livechat.ts @@ -31,7 +31,8 @@ roomCoordinator.add(LivechatRoomType, { }, async getNotificationDetails(room, _sender, notificationMessage, userId) { - const title = `[Omnichannel] ${this.roomName(room, userId)}`; + const roomName = await this.roomName(room, userId); + const title = `[Omnichannel] ${roomName}`; const text = notificationMessage; return { title, text };