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:
Šimon Brandner 2022-10-04 09:38:23 +02:00 committed by GitHub
parent ff59f68a9f
commit bb2f4fb5e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -994,7 +994,8 @@ class TimelinePanel extends React.Component<IProps, IState> {
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(