From 2cd1a931c28d0fd8e8755e9622a7d8f56d1a24a0 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 9 Jun 2021 23:52:28 +0200 Subject: Basic community list model --- src/timeline/RoomlistModel.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/timeline/RoomlistModel.cpp') diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp index 283224f1..4dd44b30 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp @@ -485,29 +485,6 @@ FilteredRoomlistModel::FilteredRoomlistModel(RoomlistModel *model, QObject *pare sort(0); } -QStringList -FilteredRoomlistModel::tags() -{ - std::set ts; - for (const auto &e : cache::roomInfo()) { - for (const auto &t : e.tags) { - if (t.find("u.") == 0) { - ts.insert(t); - } - } - } - - QStringList ret{{ - "m.favourite", - "m.lowpriority", - }}; - - for (const auto &t : ts) - ret.push_back(QString::fromStdString(t)); - - return ret; -} - void FilteredRoomlistModel::toggleTag(QString roomid, QString tag, bool on) { -- cgit 1.5.1