Close archive / forum on repeated click on current filter.
This commit is contained in:
parent
58f735e19b
commit
3394094dd3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue