mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Close archive / forum on repeated click on current filter.
This commit is contained in:
@@ -1948,11 +1948,12 @@ FilterId SessionController::activeChatsFilterCurrent() const {
|
||||
void SessionController::setActiveChatsFilter(
|
||||
FilterId id,
|
||||
const SectionShow ¶ms) {
|
||||
if (activeChatsFilterCurrent() != id) {
|
||||
const auto changed = (activeChatsFilterCurrent() != id);
|
||||
if (changed) {
|
||||
resetFakeUnreadWhileOpened();
|
||||
}
|
||||
_activeChatsFilter.force_assign(id);
|
||||
if (id) {
|
||||
if (id || !changed) {
|
||||
closeForum();
|
||||
closeFolder();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user