aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/room.cpp2
-rw-r--r--lib/room.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index b7e8195d..2e409124 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -726,7 +726,7 @@ void Room::addTag(const QString& name, const TagRecord& record)
d->sendTagUpdates();
}
-void Room::addTag(const QString& name, const QString& order)
+void Room::addTag(const QString& name, TagRecord::order_type order)
{
addTag(name, TagRecord{order});
}
diff --git a/lib/room.h b/lib/room.h
index c71d10e0..b81af69e 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -262,7 +262,8 @@ namespace QMatrixClient
* clients.
*/
void addTag(const QString& name, const TagRecord& record = {});
- Q_INVOKABLE void addTag(const QString& name, const QString& order);
+ Q_INVOKABLE void addTag(const QString& name,
+ TagRecord::order_type order);
/// Remove a tag from the room
Q_INVOKABLE void removeTag(const QString& name);