@twilio/conversations 2.6.0-rc.1 → 2.6.1-rc.1
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/README.md +1 -1
- package/builds/browser.esm.js +9 -5
- package/builds/browser.esm.js.map +1 -1
- package/builds/browser.js +9 -5
- package/builds/browser.js.map +1 -1
- package/builds/lib.esm.js +9 -5
- package/builds/lib.js +9 -5
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +10 -5
- package/builds/twilio-conversations.js.map +1 -0
- package/builds/twilio-conversations.min.js +2 -1
- package/builds/twilio-conversations.min.js.map +1 -0
- package/dist/aggregated-delivery-receipt.js +0 -2
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/channel-metadata-client.js +0 -3
- package/dist/channel-metadata-client.js.map +1 -1
- package/dist/client.js +0 -37
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +0 -5
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +0 -7
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +0 -7
- package/dist/content-client.js.map +1 -1
- package/dist/content-template.js +0 -4
- package/dist/content-template.js.map +1 -1
- package/dist/conversation.js +0 -34
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +8 -13
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/participants.js +0 -6
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +0 -6
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +0 -2
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/interfaces/rules.js +0 -9
- package/dist/interfaces/rules.js.map +1 -1
- package/dist/logger.js +0 -23
- package/dist/logger.js.map +1 -1
- package/dist/media.js +0 -7
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +0 -12
- package/dist/message-builder.js.map +1 -1
- package/dist/message-recipients-client.js +0 -4
- package/dist/message-recipients-client.js.map +1 -1
- package/dist/message.js +0 -21
- package/dist/message.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js +0 -13
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +0 -5
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +0 -6
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/typing-indicator.js +2 -8
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +0 -5
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +0 -11
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +0 -6
- package/dist/util/deferred.js.map +1 -1
- package/docs/index.html +2 -2
- package/docs/modules.html +1 -1
- package/package.json +2 -2
package/builds/browser.js
CHANGED
@@ -7142,6 +7142,8 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
7142
7142
|
createdBy: body.created_by,
|
7143
7143
|
attributes: body.attributes,
|
7144
7144
|
channel: body.sync_objects.conversation,
|
7145
|
+
roster: body.sync_objects.participants,
|
7146
|
+
messages: body.sync_objects.messages,
|
7145
7147
|
notificationLevel: body === null || body === void 0 ? void 0 : body.notification_level,
|
7146
7148
|
sid: sid
|
7147
7149
|
};
|
@@ -7187,8 +7189,10 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
7187
7189
|
uniqueName: body.unique_name,
|
7188
7190
|
createdBy: body.created_by,
|
7189
7191
|
attributes: body.attributes,
|
7190
|
-
channel: "".concat(sid, ".channel"),
|
7191
|
-
|
7192
|
+
channel: body.sync_objects.conversation || "".concat(sid, ".channel"),
|
7193
|
+
roster: body.sync_objects.participants,
|
7194
|
+
messages: body.sync_objects.messages,
|
7195
|
+
notificationLevel: body === null || body === void 0 ? void 0 : body.notification_level,
|
7192
7196
|
sid: sid
|
7193
7197
|
};
|
7194
7198
|
return _context6.abrupt("return", this._upsertConversation("sync", sid, data));
|
@@ -7525,7 +7529,7 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
7525
7529
|
status: conversationDescriptor.status,
|
7526
7530
|
channel: conversationDescriptor.sync_objects.conversation,
|
7527
7531
|
messages: conversationDescriptor.sync_objects.messages,
|
7528
|
-
roster: "".concat(conversationDescriptor.conversation_sid, ".roster"),
|
7532
|
+
roster: conversationDescriptor.sync_objects.participants || "".concat(conversationDescriptor.conversation_sid, ".roster"),
|
7529
7533
|
lastConsumedMessageIndex: conversationDescriptor.last_read_message_index,
|
7530
7534
|
notificationLevel: conversationDescriptor.notification_level
|
7531
7535
|
};
|
@@ -7948,7 +7952,7 @@ var TypingIndicator = /*#__PURE__*/function () {
|
|
7948
7952
|
}
|
7949
7953
|
|
7950
7954
|
conversation._participants.forEach(function (participant) {
|
7951
|
-
if (participant.identity !== message.identity) {
|
7955
|
+
if (participant.identity !== message.identity && participant.type !== "apple") {
|
7952
7956
|
return;
|
7953
7957
|
}
|
7954
7958
|
|
@@ -8064,7 +8068,7 @@ function PushNotification(data) {
|
|
8064
8068
|
this.data = data.data || {};
|
8065
8069
|
});
|
8066
8070
|
|
8067
|
-
var version = "2.6.
|
8071
|
+
var version = "2.6.1-rc.1";
|
8068
8072
|
|
8069
8073
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
8070
8074
|
|