2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fixed opening of same boosts info multiple times.

This commit is contained in:
23rd
2023-11-07 03:15:58 +03:00
parent ee33d139cd
commit a76534b19f
2 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ not_null<PeerData*> Widget::peer() const {
}
bool Widget::showInternal(not_null<ContentMemento*> memento) {
return false;
return (memento->statisticsPeer() == peer());
}
rpl::producer<QString> Widget::title() {

View File

@@ -284,7 +284,8 @@ bool Controller::validateMementoPeer(
return memento->peer() == peer()
&& memento->migratedPeerId() == migratedPeerId()
&& memento->settingsSelf() == settingsSelf()
&& memento->storiesPeer() == storiesPeer();
&& memento->storiesPeer() == storiesPeer()
&& memento->statisticsPeer() == statisticsPeer();
}
void Controller::setSection(not_null<ContentMemento*> memento) {