aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-12 10:01:18 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-12 10:01:18 +0200
commitfeb5e82fbe96269f1f7683470b02fbc9c70acaa0 (patch)
treeb93ccf9f2d218d8c51c7df721f8e2163c1d07417 /lib/room.h
parent803f5d21935fe159a87864f10a52707eaf93fe5f (diff)
downloadlibquotient-feb5e82fbe96269f1f7683470b02fbc9c70acaa0.tar.gz
libquotient-feb5e82fbe96269f1f7683470b02fbc9c70acaa0.zip
Room::canSwitchVersions(): refactor and make Q_INVOKABLE
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/room.h b/lib/room.h
index a5b933c2..66a8df7a 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -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);