robbyson-frontend-library 1.0.96-rc2 → 1.0.97-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils/chat.utils.js
CHANGED
|
@@ -65,7 +65,7 @@ export function getChatName(chat) {
|
|
|
65
65
|
var _a;
|
|
66
66
|
if (!(chat === null || chat === void 0 ? void 0 : chat.name))
|
|
67
67
|
return "";
|
|
68
|
-
return chat.type !== ChatConstants.TYPE_CHAT.GROUP
|
|
68
|
+
return (chat === null || chat === void 0 ? void 0 : chat.type) !== ChatConstants.TYPE_CHAT.GROUP
|
|
69
69
|
? _.startCase((_a = chat.name) === null || _a === void 0 ? void 0 : _a.toLowerCase())
|
|
70
70
|
: chat.name;
|
|
71
71
|
}
|
package/package.json
CHANGED
package/src/utils/chat.utils.ts
CHANGED
|
@@ -101,7 +101,7 @@ export function checkIfUserIsSingleAdmin(
|
|
|
101
101
|
export function getChatName(chat: ChatModel): string {
|
|
102
102
|
if (!chat?.name) return "";
|
|
103
103
|
|
|
104
|
-
return chat
|
|
104
|
+
return chat?.type !== ChatConstants.TYPE_CHAT.GROUP
|
|
105
105
|
? _.startCase(chat.name?.toLowerCase())
|
|
106
106
|
: chat.name;
|
|
107
107
|
}
|