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/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
- * 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", //either ALL these 3
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
- },
6729
- "webhook_url": "https://acme.com/my/awesome/webhook/"
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.4.0");
9532
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.5.0");
9532
9533
  }
9533
9534
  }, {
9534
9535
  key: "setUserAgent",