aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp5
-rw-r--r--lib/room.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 01a88f89..1668fdb7 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -684,6 +684,11 @@ void Room::addTag(const QString& name, const TagRecord& record)
d->broadcastTagUpdates();
}
+void Room::addTag(const QString& name, const QString& order)
+{
+ addTag(name, TagRecord{order});
+}
+
void Room::removeTag(const QString& name)
{
if (!d->tags.contains(name))
diff --git a/lib/room.h b/lib/room.h
index 7aa39eb5..e7f260dd 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -301,9 +301,10 @@ namespace QMatrixClient
* clients.
*/
void addTag(const QString& name, const TagRecord& record = {});
+ Q_INVOKABLE void addTag(const QString& name, const QString& order);
/** Remove a tag from the room */
- void removeTag(const QString& name);
+ Q_INVOKABLE void removeTag(const QString& name);
/** Overwrite the room's tags
* This completely replaces the existing room's tags with a set