Check for the spec version when determining private read receipt support (#9341)
Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
parent
ff59f68a9f
commit
bb2f4fb5e6
2 changed files with 6 additions and 2 deletions
|
@ -125,9 +125,12 @@ export default class PreferencesUserSettingsTab extends React.Component<IProps,
|
|||
}
|
||||
|
||||
public async componentDidMount(): Promise<void> {
|
||||
const cli = MatrixClientPeg.get();
|
||||
|
||||
this.setState({
|
||||
disablingReadReceiptsSupported: (
|
||||
await MatrixClientPeg.get().doesServerSupportUnstableFeature("org.matrix.msc2285.stable")
|
||||
(await cli.doesServerSupportUnstableFeature("org.matrix.msc2285.stable"))
|
||||
|| (await cli.isVersionSupported("v1.4"))
|
||||
),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue