stream-chat 6.4.0 → 6.5.0
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/dist/browser.es.js +23 -22
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +23 -22
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +23 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +23 -22
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +21 -20
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +6 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/client.ts +22 -21
- package/src/types.ts +43 -3
package/dist/index.es.js
CHANGED
|
@@ -6708,26 +6708,27 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
6708
6708
|
* updateAppSettings - updates application settings
|
|
6709
6709
|
*
|
|
6710
6710
|
* @param {AppSettings} options App settings.
|
|
6711
|
-
*
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6711
|
+
* IE: {
|
|
6712
|
+
'apn_config': {
|
|
6713
|
+
'auth_type': 'token',
|
|
6714
|
+
'auth_key": fs.readFileSync(
|
|
6715
|
+
'./apn-push-auth-key.p8',
|
|
6716
|
+
'utf-8',
|
|
6717
|
+
),
|
|
6718
|
+
'key_id': 'keyid',
|
|
6719
|
+
'team_id': 'teamid',
|
|
6720
|
+
'notification_template": 'notification handlebars template',
|
|
6721
|
+
'bundle_id': 'com.apple.your.app',
|
|
6722
|
+
'development': true
|
|
6723
|
+
},
|
|
6724
|
+
'firebase_config': {
|
|
6725
|
+
'server_key': 'server key from fcm',
|
|
6726
|
+
'notification_template': 'notification handlebars template',
|
|
6727
|
+
'data_template': 'data handlebars template',
|
|
6728
|
+
'apn_template': 'apn notification handlebars template under v2'
|
|
6729
|
+
},
|
|
6730
|
+
'webhook_url': 'https://acme.com/my/awesome/webhook/'
|
|
6731
|
+
}
|
|
6731
6732
|
*/
|
|
6732
6733
|
function () {
|
|
6733
6734
|
var _updateAppSettings = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(options) {
|
|
@@ -7344,7 +7345,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7344
7345
|
this.mutedUsers = event.me.mutes;
|
|
7345
7346
|
}
|
|
7346
7347
|
|
|
7347
|
-
if (event.type === 'notification.mark_read') {
|
|
7348
|
+
if (event.type === 'notification.mark_read' && event.unread_channels === 0) {
|
|
7348
7349
|
var activeChannelKeys = Object.keys(this.activeChannels);
|
|
7349
7350
|
activeChannelKeys.forEach(function (activeChannelKey) {
|
|
7350
7351
|
return _this3.activeChannels[activeChannelKey].state.unreadCount = 0;
|
|
@@ -9528,7 +9529,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9528
9529
|
}, {
|
|
9529
9530
|
key: "getUserAgent",
|
|
9530
9531
|
value: function getUserAgent() {
|
|
9531
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.
|
|
9532
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.5.0");
|
|
9532
9533
|
}
|
|
9533
9534
|
}, {
|
|
9534
9535
|
key: "setUserAgent",
|