Add missing supportsMatrixSpecVersion QML function
This was rebased out or something in 197d7ce8e8
This commit is contained in:
@@ -608,4 +608,9 @@ void NeoChatConnection::reportUser(const QString &userId, const QString &reason)
|
|||||||
callApi<NeochatReportUserJob>(userId, reason);
|
callApi<NeochatReportUserJob>(userId, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool NeoChatConnection::supportsMatrixSpecVersion(const QString &version)
|
||||||
|
{
|
||||||
|
return supportedMatrixSpecVersions().contains(version);
|
||||||
|
}
|
||||||
|
|
||||||
#include "moc_neochatconnection.cpp"
|
#include "moc_neochatconnection.cpp"
|
||||||
|
|||||||
@@ -229,6 +229,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
Q_INVOKABLE void reportUser(const QString &userId, const QString &reason);
|
Q_INVOKABLE void reportUser(const QString &userId, const QString &reason);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return True if this connection supports the given spec version (e.g. "v1.11").
|
||||||
|
*/
|
||||||
|
Q_INVOKABLE bool supportsMatrixSpecVersion(const QString &version);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void globalUrlPreviewEnabledChanged();
|
void globalUrlPreviewEnabledChanged();
|
||||||
void labelChanged();
|
void labelChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user