@cometchat/chat-uikit-angular 4.3.21 → 4.3.22
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/CometChatMessageComposer/cometchat-message-composer/cometchat-message-composer.component.mjs +5 -1
- package/esm2020/CometChatMessageList/cometchat-message-list/cometchat-message-list.component.mjs +7 -1
- package/esm2020/Shared/CometChatUIkit/CometChatUIKit.mjs +2 -2
- package/esm2020/Shared/Framework/ChatConfigurator.mjs +4 -1
- package/fesm2015/cometchat-chat-uikit-angular.mjs +14 -1
- package/fesm2015/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs +14 -1
- package/fesm2020/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -693,6 +693,9 @@ class MessageUtils {
|
|
|
693
693
|
class ChatConfigurator {
|
|
694
694
|
static init(initialSource) {
|
|
695
695
|
this.dataSource = initialSource ?? new MessageUtils();
|
|
696
|
+
if (!initialSource) {
|
|
697
|
+
this.names = [];
|
|
698
|
+
}
|
|
696
699
|
this.names.push(this.dataSource.getId());
|
|
697
700
|
}
|
|
698
701
|
static enable(callback) {
|
|
@@ -1909,7 +1912,7 @@ class CometChatUIKit {
|
|
|
1909
1912
|
if (window) {
|
|
1910
1913
|
window.CometChatUiKit = {
|
|
1911
1914
|
name: "@cometchat/chat-uikit-angular",
|
|
1912
|
-
version: "4.3.
|
|
1915
|
+
version: "4.3.22",
|
|
1913
1916
|
};
|
|
1914
1917
|
}
|
|
1915
1918
|
if (CometChatUIKitSharedSettings) {
|
|
@@ -9341,6 +9344,9 @@ class CometChatMessageListComponent {
|
|
|
9341
9344
|
}
|
|
9342
9345
|
};
|
|
9343
9346
|
this.appendMessages = (messages) => {
|
|
9347
|
+
if (!this.isPartOfCurrentChatForSDKEvent(messages[0])) {
|
|
9348
|
+
return;
|
|
9349
|
+
}
|
|
9344
9350
|
this.messagesList.push(...messages);
|
|
9345
9351
|
this.messageCount = this.messagesList.length;
|
|
9346
9352
|
if (this.messageCount > this.thresholdValue) {
|
|
@@ -11951,6 +11957,9 @@ class CometChatMessageListComponent {
|
|
|
11951
11957
|
*/
|
|
11952
11958
|
prependMessages(messages) {
|
|
11953
11959
|
try {
|
|
11960
|
+
if (!this.isPartOfCurrentChatForSDKEvent(messages[0])) {
|
|
11961
|
+
return;
|
|
11962
|
+
}
|
|
11954
11963
|
this.messagesList = [...messages, ...this.messagesList];
|
|
11955
11964
|
this.messageCount = this.messagesList.length;
|
|
11956
11965
|
if (this.messageCount > this.thresholdValue) {
|
|
@@ -13909,6 +13918,10 @@ class CometChatMessageComposerComponent {
|
|
|
13909
13918
|
if (action.onClick) {
|
|
13910
13919
|
action.onClick();
|
|
13911
13920
|
}
|
|
13921
|
+
if (this.showActionSheetItem) {
|
|
13922
|
+
this.showActionSheetItem = false;
|
|
13923
|
+
this.actionSheetRef.nativeElement.click();
|
|
13924
|
+
}
|
|
13912
13925
|
};
|
|
13913
13926
|
this.inputChangeHandler = (event) => {
|
|
13914
13927
|
const handler = this.acceptHandlers[this.inputElementRef.nativeElement.accept] ||
|