@smartico/public-api 0.0.297 → 0.0.298

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.
@@ -1941,7 +1941,9 @@ class WSAPI {
1941
1941
  OCache.clear(ECacheContext.WSAPI, onUpdateContextKey.Raffles);
1942
1942
  });
1943
1943
  on(ClassId.GET_INBOX_MESSAGES_RESPONSE, res => {
1944
- if (res.unread_count && triggerExternalCallback) {
1944
+ var _this$api$tracker;
1945
+ const unreadCountInProfile = (_this$api$tracker = this.api.tracker) == null || (_this$api$tracker = _this$api$tracker.userPublicProps) == null ? void 0 : _this$api$tracker.core_inbox_unread_count;
1946
+ if (res.unread_count && triggerExternalCallback && unreadCountInProfile !== res.unread_count) {
1945
1947
  triggerExternalCallback('props_change', {
1946
1948
  core_inbox_unread_count: res.unread_count
1947
1949
  });