Add a new function to check supported Matrix spec in QML

This commit is contained in:
Joshua Goins
2025-10-27 17:07:25 -04:00
parent efbf6d96d4
commit 197d7ce8e8
2 changed files with 10 additions and 0 deletions

View File

@@ -602,4 +602,9 @@ void NeoChatConnection::unlockSSSS(const QString &secret)
}
}
void NeoChatConnection::reportUser(const QString &userId, const QString &reason)
{
callApi<NeochatReportUserJob>(userId, reason);
}
#include "moc_neochatconnection.cpp"

View File

@@ -224,6 +224,11 @@ public:
Q_INVOKABLE void unlockSSSS(const QString &secret);
/**
* @brief Report a user.
*/
Q_INVOKABLE void reportUser(const QString &userId, const QString &reason);
Q_SIGNALS:
void globalUrlPreviewEnabledChanged();
void labelChanged();