diff --git a/package-lock.json b/package-lock.json index fba35f5e3..7fe424b8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "dcl-crypto": "^2.3.0", "dcl-quests-client": "^2.10.0", "dcl-scene-writer": "^1.1.2", - "dcl-social-client": "^1.3.13", + "dcl-social-client": "^1.4", "decentraland-ecs": "^6.0.4", "decentraland-rpc": "^3.1.9", "devtools-protocol": "0.0.615714", @@ -4412,9 +4412,9 @@ } }, "node_modules/dcl-social-client": { - "version": "1.3.13", - "resolved": "https://registry.npmjs.org/dcl-social-client/-/dcl-social-client-1.3.13.tgz", - "integrity": "sha512-tKNk6/lMxlr5zci6In8sDmesEFvdwg9InMPjonbgJzRXVEECRBjrTknmS0vgKeK/s750d8d+D1hpHT41rd3QDA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/dcl-social-client/-/dcl-social-client-1.4.0.tgz", + "integrity": "sha512-G8k/WJ7aP/9Xd7Oh9Mh8RLgzgAkFaeevxi2iBUJm5dDkF7E6VU9wHbWE4YrRh0jMK9my8514FtzudertiUNMCA==", "dependencies": { "@types/matrix-js-sdk": "^5.1.2", "@types/node": "^13.11.1", @@ -17806,9 +17806,9 @@ "requires": {} }, "dcl-social-client": { - "version": "1.3.13", - "resolved": "https://registry.npmjs.org/dcl-social-client/-/dcl-social-client-1.3.13.tgz", - "integrity": "sha512-tKNk6/lMxlr5zci6In8sDmesEFvdwg9InMPjonbgJzRXVEECRBjrTknmS0vgKeK/s750d8d+D1hpHT41rd3QDA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/dcl-social-client/-/dcl-social-client-1.4.0.tgz", + "integrity": "sha512-G8k/WJ7aP/9Xd7Oh9Mh8RLgzgAkFaeevxi2iBUJm5dDkF7E6VU9wHbWE4YrRh0jMK9my8514FtzudertiUNMCA==", "requires": { "@types/matrix-js-sdk": "^5.1.2", "@types/node": "^13.11.1", diff --git a/package.json b/package.json index 79eb06733..61201215d 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "dcl-crypto": "^2.3.0", "dcl-quests-client": "^2.10.0", "dcl-scene-writer": "^1.1.2", - "dcl-social-client": "^1.3.13", + "dcl-social-client": "^1.4", "decentraland-ecs": "^6.0.4", "decentraland-rpc": "^3.1.9", "devtools-protocol": "0.0.615714", @@ -119,4 +119,4 @@ "trailingComma": "none", "tabWidth": 2 } -} +} \ No newline at end of file diff --git a/packages/shared/friends/sagas.ts b/packages/shared/friends/sagas.ts index a99767970..58e26dbc7 100644 --- a/packages/shared/friends/sagas.ts +++ b/packages/shared/friends/sagas.ts @@ -321,11 +321,16 @@ function* initializePrivateMessaging() { const authChain = Authenticator.signPayload(identity, messageToSign) + const disablePresence = yield select(getFeatureFlagEnabled, 'matrix_presence_disabled') + const client: SocialAPI = yield apply(SocialClient, SocialClient.loginToServer, [ synapseUrl, ethAddress, timestamp, - authChain + authChain, + { + disablePresence + } ]) yield put(setMatrixClient(client)) diff --git a/packages/shared/meta/types.ts b/packages/shared/meta/types.ts index c6b9bf918..f64d1b48d 100644 --- a/packages/shared/meta/types.ts +++ b/packages/shared/meta/types.ts @@ -25,6 +25,7 @@ export type FeatureFlagsName = | 'retry_matrix_login' // retry matrix reconnection | 'parcel-denylist' // denylist of specific parcels using variants | 'matrix_disabled' // disable matrix integration entirely + | 'matrix_presence_disabled' // disable matrix presence feature | 'builder_in_world' | 'avatar_lods' | 'asset_bundles'