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.
@@ -6705,26 +6705,27 @@ var StreamChat = /*#__PURE__*/function () {
6705
6705
  * updateAppSettings - updates application settings
6706
6706
  *
6707
6707
  * @param {AppSettings} options App settings.
6708
- * IE: {
6709
- "apn_config": {
6710
- "auth_type": "token",
6711
- "auth_key": fs.readFileSync(
6712
- './apn-push-auth-key.p8',
6713
- 'utf-8',
6714
- ),
6715
- "key_id": "keyid",
6716
- "team_id": "teamid", //either ALL these 3
6717
- "notification_template": "notification handlebars template",
6718
- "bundle_id": "com.apple.your.app",
6719
- "development": true
6720
- },
6721
- "firebase_config": {
6722
- "server_key": "server key from fcm",
6723
- "notification_template": "notification handlebars template"
6724
- "data_template": "data handlebars template"
6725
- },
6726
- "webhook_url": "https://acme.com/my/awesome/webhook/"
6727
- }
6708
+ * IE: {
6709
+ 'apn_config': {
6710
+ 'auth_type': 'token',
6711
+ 'auth_key": fs.readFileSync(
6712
+ './apn-push-auth-key.p8',
6713
+ 'utf-8',
6714
+ ),
6715
+ 'key_id': 'keyid',
6716
+ 'team_id': 'teamid',
6717
+ 'notification_template": 'notification handlebars template',
6718
+ 'bundle_id': 'com.apple.your.app',
6719
+ 'development': true
6720
+ },
6721
+ 'firebase_config': {
6722
+ 'server_key': 'server key from fcm',
6723
+ 'notification_template': 'notification handlebars template',
6724
+ 'data_template': 'data handlebars template',
6725
+ 'apn_template': 'apn notification handlebars template under v2'
6726
+ },
6727
+ 'webhook_url': 'https://acme.com/my/awesome/webhook/'
6728
+ }
6728
6729
  */
6729
6730
  function () {
6730
6731
  var _updateAppSettings = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(options) {
@@ -7341,7 +7342,7 @@ var StreamChat = /*#__PURE__*/function () {
7341
7342
  this.mutedUsers = event.me.mutes;
7342
7343
  }
7343
7344
 
7344
- if (event.type === 'notification.mark_read') {
7345
+ if (event.type === 'notification.mark_read' && event.unread_channels === 0) {
7345
7346
  var activeChannelKeys = Object.keys(this.activeChannels);
7346
7347
  activeChannelKeys.forEach(function (activeChannelKey) {
7347
7348
  return _this3.activeChannels[activeChannelKey].state.unreadCount = 0;
@@ -9525,7 +9526,7 @@ var StreamChat = /*#__PURE__*/function () {
9525
9526
  }, {
9526
9527
  key: "getUserAgent",
9527
9528
  value: function getUserAgent() {
9528
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.4.0");
9529
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.5.0");
9529
9530
  }
9530
9531
  }, {
9531
9532
  key: "setUserAgent",