@twilio/conversations 2.0.1-rc.1 → 2.0.1-rc.5
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/CHANGELOG.md +36 -0
- package/README.md +4 -12
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/docs/index.html +4 -10
- package/dist/docs/modules.html +4 -10
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +1 -1
- package/dist/react-native.js +2 -2
- package/dist/react-native.js.map +1 -1
- package/dist/twilio-conversations.js +5 -5
- package/dist/twilio-conversations.min.js +2 -2
- package/package.json +10 -10
package/dist/react-native.js
CHANGED
@@ -2839,7 +2839,7 @@ class Conversations extends replayEventEmitter.ReplayEventEmitter {
|
|
2839
2839
|
}
|
2840
2840
|
async getConversation(sid) {
|
2841
2841
|
const conversationsMap = await this._getMap();
|
2842
|
-
const page = await conversationsMap.getItems({
|
2842
|
+
const page = await conversationsMap.getItems({ key: sid });
|
2843
2843
|
const items = page.items.map((item) => this._upsertConversation('sync', item.key, item.data));
|
2844
2844
|
return items.length > 0 ? items[0] : null;
|
2845
2845
|
}
|
@@ -3232,7 +3232,7 @@ class PushNotification {
|
|
3232
3232
|
}
|
3233
3233
|
}
|
3234
3234
|
|
3235
|
-
var version = "2.0.1-rc.
|
3235
|
+
var version = "2.0.1-rc.5";
|
3236
3236
|
|
3237
3237
|
const trimSlashes = (url) => url.replace(/(^\/+|\/+$)/g, '');
|
3238
3238
|
const isMutationConflictResponse = (response) => response.status.code === 202;
|