summary refs log tree commit diff
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-14 19:57:29 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-14 19:57:29 +0530
commitf35e8264859318f170c2cb4aa55ce765fb3bad3f (patch)
treee072687ced2c15cf25d34d2eafbdcced03f35d69
parentFix two room leaving related bugs and add invite user on clicking invite (diff)
downloadnheko-f35e8264859318f170c2cb4aa55ce765fb3bad3f.tar.xz
Fix room list updating on adding to hidden tag or removing tag
-rw-r--r--src/CommunitiesList.cpp3
-rw-r--r--src/CommunitiesList.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/CommunitiesList.cpp b/src/CommunitiesList.cpp

index 77e6368a..8bc71d91 100644 --- a/src/CommunitiesList.cpp +++ b/src/CommunitiesList.cpp
@@ -65,6 +65,7 @@ CommunitiesList::setCommunities(const mtx::responses::JoinedGroups &response) addCommunity(group); communities_["world"]->setPressedState(true); + selectedCommunity_ = "world"; emit communityChanged("world"); sortEntries(); } @@ -74,6 +75,7 @@ CommunitiesList::syncTags(const std::map<QString, RoomInfo> &info) { for (const auto &room : info) setTagsForRoom(room.first, room.second.tags); + emit communityChanged(selectedCommunity_); sortEntries(); } @@ -231,6 +233,7 @@ CommunitiesList::highlightSelectedCommunity(const QString &community_id) return; } + selectedCommunity_ = community_id; emit communityChanged(community_id); for (const auto &community : communities_) { diff --git a/src/CommunitiesList.h b/src/CommunitiesList.h
index d62beb8d..5113e7ed 100644 --- a/src/CommunitiesList.h +++ b/src/CommunitiesList.h
@@ -53,6 +53,7 @@ private: return communities_.find(id) != communities_.end(); } + QString selectedCommunity_; QVBoxLayout *topLayout_; QVBoxLayout *contentsLayout_; QScrollArea *scrollArea_;