Think about what you copy-paste, Simon

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-06-24 14:15:44 +02:00
parent a774aed365
commit d2d8cb3c24
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 4 deletions

View File

@ -89,10 +89,7 @@ export default class MemberList extends React.Component<IProps, IState> {
cli.on("Room", this.onRoom); // invites & joining after peek
const enablePresenceByHsUrl = SdkConfig.get()["enable_presence_by_hs_url"];
const hsUrl = MatrixClientPeg.get().baseUrl;
this.showPresence = true;
if (enablePresenceByHsUrl && enablePresenceByHsUrl[hsUrl] !== undefined) {
this.showPresence = enablePresenceByHsUrl?.[hsUrl] ?? true;
}
this.showPresence = enablePresenceByHsUrl?.[hsUrl] ?? true;
}
// eslint-disable-next-line camelcase