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:
@@ -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() {
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user