@cometchat/chat-uikit-angular 4.3.27 → 4.3.28
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/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +17 -13
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +2 -2
- package/fesm2015/cometchat-chat-uikit-angular.mjs +17 -13
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +17 -13
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1912,7 +1912,7 @@ class CometChatUIKit {
|
|
|
1912
1912
|
if (window) {
|
|
1913
1913
|
window.CometChatUiKit = {
|
|
1914
1914
|
name: "@cometchat/chat-uikit-angular",
|
|
1915
|
-
version: "4.3.
|
|
1915
|
+
version: "4.3.28",
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
1918
|
if (CometChatUIKitSharedSettings) {
|
|
@@ -8858,12 +8858,12 @@ class CometChatMessageListComponent {
|
|
|
8858
8858
|
* @returns {CometChatMessageOption[]} The filtered set of message options.
|
|
8859
8859
|
*/
|
|
8860
8860
|
this.filterEmojiOptions = (options) => {
|
|
8861
|
-
if (
|
|
8862
|
-
return options
|
|
8861
|
+
if (this.disableReactions && options?.length > 0) {
|
|
8862
|
+
return options.filter((option) => {
|
|
8863
|
+
return option.id !== CometChatUIKitConstants.MessageOption.reactToMessage;
|
|
8864
|
+
});
|
|
8863
8865
|
}
|
|
8864
|
-
return options
|
|
8865
|
-
return option.id !== CometChatUIKitConstants.MessageOption.reactToMessage;
|
|
8866
|
-
});
|
|
8866
|
+
return options;
|
|
8867
8867
|
};
|
|
8868
8868
|
/**
|
|
8869
8869
|
* Checks if the 'statusInfoView' is present in the default template provided by the user
|
|
@@ -9219,9 +9219,11 @@ class CometChatMessageListComponent {
|
|
|
9219
9219
|
//mark the message as delivered
|
|
9220
9220
|
if (!this.disableReceipt) {
|
|
9221
9221
|
CometChat.markAsDelivered(lastMessage).then(() => {
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9222
|
+
if (lastMessage.getReceiverType() == CometChatUIKitConstants.MessageReceiverType.user) {
|
|
9223
|
+
let messageKey = this.messagesList.findIndex((m) => m.getId() === lastMessage?.getId());
|
|
9224
|
+
if (messageKey > -1) {
|
|
9225
|
+
this.markAllMessagAsDelivered(messageKey);
|
|
9226
|
+
}
|
|
9225
9227
|
}
|
|
9226
9228
|
});
|
|
9227
9229
|
}
|
|
@@ -9230,9 +9232,11 @@ class CometChatMessageListComponent {
|
|
|
9230
9232
|
if (!this.disableReceipt) {
|
|
9231
9233
|
CometChat.markAsRead(lastMessage)
|
|
9232
9234
|
.then(() => {
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9235
|
+
if (lastMessage.getReceiverType() == CometChatUIKitConstants.MessageReceiverType.user) {
|
|
9236
|
+
let messageKey = this.messagesList.findIndex((m) => m.getId() === lastMessage?.getId());
|
|
9237
|
+
if (messageKey > -1) {
|
|
9238
|
+
this.markAllMessagAsRead(messageKey);
|
|
9239
|
+
}
|
|
9236
9240
|
}
|
|
9237
9241
|
})
|
|
9238
9242
|
.catch((error) => {
|
|
@@ -10398,7 +10402,7 @@ class CometChatMessageListComponent {
|
|
|
10398
10402
|
}
|
|
10399
10403
|
openMessageInfo(messageObject) {
|
|
10400
10404
|
this.openMessageInfoPage = true;
|
|
10401
|
-
this.messageInfoObject = messageObject;
|
|
10405
|
+
this.messageInfoObject = CometChatUIKitUtility.clone(messageObject);
|
|
10402
10406
|
this.ref.detectChanges();
|
|
10403
10407
|
}
|
|
10404
10408
|
sendMessagePrivately(messageObject) {
|