http-request-manager 18.7.0 → 18.7.1
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.
|
@@ -3102,9 +3102,11 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
3102
3102
|
console.log(`ℹ️ Info: ${message.message}`);
|
|
3103
3103
|
break;
|
|
3104
3104
|
case 'stateMangerMessage':
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3105
|
+
// Compare sender's session ID with current user's ID
|
|
3106
|
+
// message.data.sessionId is an object with 'id' property from server
|
|
3107
|
+
const stateManagerSenderId = message.data.sessionId?.id || message.data.sessionId;
|
|
3108
|
+
if (stateManagerSenderId !== this.user.value?.id) {
|
|
3109
|
+
console.log('💬 State Manager Message:', message.data);
|
|
3108
3110
|
this.userAction.next(message.data);
|
|
3109
3111
|
this.fetchRecord(RequestOptions.adapt({ path: message.data.content.path }), message.data.content.method);
|
|
3110
3112
|
}
|