diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-04-12 10:01:18 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-04-12 10:01:18 +0200 |
commit | feb5e82fbe96269f1f7683470b02fbc9c70acaa0 (patch) | |
tree | b93ccf9f2d218d8c51c7df721f8e2163c1d07417 /lib/room.h | |
parent | 803f5d21935fe159a87864f10a52707eaf93fe5f (diff) | |
download | libquotient-feb5e82fbe96269f1f7683470b02fbc9c70acaa0.tar.gz libquotient-feb5e82fbe96269f1f7683470b02fbc9c70acaa0.zip |
Room::canSwitchVersions(): refactor and make Q_INVOKABLE
Diffstat (limited to 'lib/room.h')
-rw-r--r-- | lib/room.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -474,6 +474,9 @@ public: Q_INVOKABLE bool supportsCalls() const; + /// Whether the current user is allowed to upgrade the room + Q_INVOKABLE bool canSwitchVersions() const; + /// Get a state event with the given event type and state key /*! This method returns a (potentially empty) state event corresponding * to the pair of event type \p evtType and state key \p stateKey. @@ -566,9 +569,6 @@ public slots: /// Mark all messages in the room as read void markAllMessagesAsRead(); - /// Whether the current user is allowed to upgrade the room - bool canSwitchVersions() const; - /// Switch the room's version (aka upgrade) void switchVersion(QString newVersion); |