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

Commit

Permalink
feat: add disable presence feature flag for matrix client (#333)
Browse files Browse the repository at this point in the history
* feat: add disable presence feature flag for matrix client

* fix: delete extra ','
  • Loading branch information
guidota authored Jun 9, 2022
1 parent a407b61 commit a5610ca
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -119,4 +119,4 @@
"trailingComma": "none",
"tabWidth": 2
}
}
}
7 changes: 6 additions & 1 deletion packages/shared/friends/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions packages/shared/meta/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a5610ca

Please sign in to comment.