summary refs log tree commit diff
path: root/src/CommunitiesList.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-02-15 21:56:07 +0100
committerGitHub <noreply@github.com>2021-02-15 21:56:07 +0100
commitcae5531c4b29222dd34a1b7f719199c7d72189de (patch)
tree880548b2a4afcbe5f8f028a0436a09c367464a0a /src/CommunitiesList.cpp
parentAdd double tap to reply feature (diff)
parenttrim invite input text (diff)
downloadnheko-cae5531c4b29222dd34a1b7f719199c7d72189de.tar.xz
Merge pull request #476 from Jedi18/master
Fix room leaving related bugs and few minor bugs
Diffstat (limited to 'src/CommunitiesList.cpp')
-rw-r--r--src/CommunitiesList.cpp3
1 files changed, 3 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_) {