@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.
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/WSAPI/WSAPI.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -1970,7 +1970,9 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1970
1970
|
OCache.clear(exports.ECacheContext.WSAPI, onUpdateContextKey.Raffles);
|
|
1971
1971
|
});
|
|
1972
1972
|
on(exports.ClassId.GET_INBOX_MESSAGES_RESPONSE, function (res) {
|
|
1973
|
-
|
|
1973
|
+
var _this$api$tracker;
|
|
1974
|
+
var 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;
|
|
1975
|
+
if (res.unread_count && triggerExternalCallback && unreadCountInProfile !== res.unread_count) {
|
|
1974
1976
|
triggerExternalCallback('props_change', {
|
|
1975
1977
|
core_inbox_unread_count: res.unread_count
|
|
1976
1978
|
});
|