Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit a5610ca

Browse files
authored
feat: add disable presence feature flag for matrix client (#333)
* feat: add disable presence feature flag for matrix client * fix: delete extra ','
1 parent a407b61 commit a5610ca

4 files changed

Lines changed: 16 additions & 10 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"dcl-crypto": "^2.3.0",
8787
"dcl-quests-client": "^2.10.0",
8888
"dcl-scene-writer": "^1.1.2",
89-
"dcl-social-client": "^1.3.13",
89+
"dcl-social-client": "^1.4",
9090
"decentraland-ecs": "^6.0.4",
9191
"decentraland-rpc": "^3.1.9",
9292
"devtools-protocol": "0.0.615714",
@@ -119,4 +119,4 @@
119119
"trailingComma": "none",
120120
"tabWidth": 2
121121
}
122-
}
122+
}

packages/shared/friends/sagas.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,16 @@ function* initializePrivateMessaging() {
321321

322322
const authChain = Authenticator.signPayload(identity, messageToSign)
323323

324+
const disablePresence = yield select(getFeatureFlagEnabled, 'matrix_presence_disabled')
325+
324326
const client: SocialAPI = yield apply(SocialClient, SocialClient.loginToServer, [
325327
synapseUrl,
326328
ethAddress,
327329
timestamp,
328-
authChain
330+
authChain,
331+
{
332+
disablePresence
333+
}
329334
])
330335

331336
yield put(setMatrixClient(client))

packages/shared/meta/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export type FeatureFlagsName =
2525
| 'retry_matrix_login' // retry matrix reconnection
2626
| 'parcel-denylist' // denylist of specific parcels using variants
2727
| 'matrix_disabled' // disable matrix integration entirely
28+
| 'matrix_presence_disabled' // disable matrix presence feature
2829
| 'builder_in_world'
2930
| 'avatar_lods'
3031
| 'asset_bundles'

0 commit comments

Comments
 (0)