diff --git a/src/components/structures/TimelinePanel.tsx b/src/components/structures/TimelinePanel.tsx index b14016d0be..1e262014c2 100644 --- a/src/components/structures/TimelinePanel.tsx +++ b/src/components/structures/TimelinePanel.tsx @@ -994,7 +994,8 @@ class TimelinePanel extends React.Component { if (e.errcode === 'M_UNRECOGNIZED' && lastReadEvent) { if ( !sendRRs - && !cli.doesServerSupportUnstableFeature("org.matrix.msc2285.stable") + && !(await cli.doesServerSupportUnstableFeature("org.matrix.msc2285.stable")) + && !(await cli.isVersionSupported("v1.4")) ) return; try { return await cli.sendReadReceipt( diff --git a/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx b/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx index 643a137306..1519e39a0d 100644 --- a/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/PreferencesUserSettingsTab.tsx @@ -125,9 +125,12 @@ export default class PreferencesUserSettingsTab extends React.Component { + 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")) ), }); }