From 42297e41115dd9e3462ac818019d64f6efe49aee Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 19 Nov 2024 22:41:21 +0100 Subject: [PATCH] Fix Connection::supportedMatrixSpecVersions --- Quotient/connection.cpp | 2 +- Quotient/connection_p.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Quotient/connection.cpp b/Quotient/connection.cpp index 4c2839cf0..c15d34b94 100644 --- a/Quotient/connection.cpp +++ b/Quotient/connection.cpp @@ -238,7 +238,7 @@ bool Connection::capabilitiesReady() const return d->capabilities.roomVersions.has_value(); } -QStringList Connection::supportedMatrixSpecVersions() const { return d->apiVersions.versions; } +QStringList Connection::supportedMatrixSpecVersions() const { return d->data->homeserverData().supportedSpecVersions; } void Connection::Private::saveAccessTokenToKeychain() const { diff --git a/Quotient/connection_p.h b/Quotient/connection_p.h index 126775bc0..d35e27ff3 100644 --- a/Quotient/connection_p.h +++ b/Quotient/connection_p.h @@ -52,7 +52,6 @@ class Q_DECL_HIDDEN Quotient::Connection::Private { QMetaObject::Connection syncLoopConnection {}; int syncTimeout = -1; - GetVersionsJob::Response apiVersions{}; GetCapabilitiesJob::Capabilities capabilities{}; QVector loginFlows;