sceyt-chat-react-uikit 1.8.8-beta.1 → 1.8.8-beta.2
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/index.js +9 -1
- package/index.modern.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -50781,7 +50781,15 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
50781
50781
|
if (messageBodyAttributes && messageBodyAttributes.length) {
|
|
50782
50782
|
messageBodyAttributes.forEach(function (att) {
|
|
50783
50783
|
if (att.type === 'mention') {
|
|
50784
|
-
|
|
50784
|
+
var mentionsToFind = [].concat(mentionedUsers);
|
|
50785
|
+
var draftMessage = getDraftMessageFromMap(activeChannel.id);
|
|
50786
|
+
if (draftMessage) {
|
|
50787
|
+
mentionsToFind = [].concat(draftMessage.mentionedUsers, mentionedUsers);
|
|
50788
|
+
}
|
|
50789
|
+
var mentionToAdd = mentionsToFind.find(function (mention) {
|
|
50790
|
+
return mention.id === att.metadata;
|
|
50791
|
+
});
|
|
50792
|
+
mentionUsersToSend.push(mentionToAdd || {
|
|
50785
50793
|
id: att.metadata
|
|
50786
50794
|
});
|
|
50787
50795
|
}
|
package/index.modern.js
CHANGED
|
@@ -50780,7 +50780,15 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
50780
50780
|
if (messageBodyAttributes && messageBodyAttributes.length) {
|
|
50781
50781
|
messageBodyAttributes.forEach(function (att) {
|
|
50782
50782
|
if (att.type === 'mention') {
|
|
50783
|
-
|
|
50783
|
+
var mentionsToFind = [].concat(mentionedUsers);
|
|
50784
|
+
var draftMessage = getDraftMessageFromMap(activeChannel.id);
|
|
50785
|
+
if (draftMessage) {
|
|
50786
|
+
mentionsToFind = [].concat(draftMessage.mentionedUsers, mentionedUsers);
|
|
50787
|
+
}
|
|
50788
|
+
var mentionToAdd = mentionsToFind.find(function (mention) {
|
|
50789
|
+
return mention.id === att.metadata;
|
|
50790
|
+
});
|
|
50791
|
+
mentionUsersToSend.push(mentionToAdd || {
|
|
50784
50792
|
id: att.metadata
|
|
50785
50793
|
});
|
|
50786
50794
|
}
|