diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 18:25:13 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 18:25:13 +0900 |
commit | 658f79dc57a2528878cf29ba3f69095b9e6d18e5 (patch) | |
tree | 25c06c7d52a197c145116db8c5e06487e963fc16 /connection.cpp | |
parent | 089a23093dd8e73b4e1e5b1a2aa3935028066faa (diff) | |
parent | 2e7627528308da7629f1293757de2fb4bb22a7ad (diff) | |
download | libquotient-658f79dc57a2528878cf29ba3f69095b9e6d18e5.tar.gz libquotient-658f79dc57a2528878cf29ba3f69095b9e6d18e5.zip |
Merge branch 'kitsune-save-room-tags'
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connection.cpp b/connection.cpp index a57bd8b4..80685dd1 100644 --- a/connection.cpp +++ b/connection.cpp @@ -539,12 +539,12 @@ QHash<QString, QVector<Room*>> Connection::tagsToRooms() const QStringList Connection::tagNames() const { - QStringList tags ({"m.favourite"}); + QStringList tags ({FavouriteTag}); for (auto* r: d->roomMap) for (const auto& tag: r->tagNames()) - if (tag != "m.lowpriority" && !tags.contains(tag)) + if (tag != LowPriorityTag && !tags.contains(tag)) tags.push_back(tag); - tags.push_back("m.lowpriority"); + tags.push_back(LowPriorityTag); return tags; } |