2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Removed redundant peerListShowBox / peerListHideLayer from delegates.

This commit is contained in:
23rd
2023-11-08 23:43:42 +03:00
parent 135ffb13fd
commit 282c076931
21 changed files with 35 additions and 148 deletions

View File

@@ -366,7 +366,7 @@ bool AddParticipantsBoxController::needsInviteLinkButton() {
QPointer<Ui::BoxContent> AddParticipantsBoxController::showBox(
object_ptr<Ui::BoxContent> box) const {
const auto weak = Ui::MakeWeak(box.data());
delegate()->peerListShowBox(std::move(box));
delegate()->peerListUiShow()->showBox(std::move(box));
return weak;
}
@@ -668,7 +668,7 @@ void AddSpecialBoxController::migrate(
QPointer<Ui::BoxContent> AddSpecialBoxController::showBox(
object_ptr<Ui::BoxContent> box) const {
const auto weak = Ui::MakeWeak(box.data());
delegate()->peerListShowBox(std::move(box));
delegate()->peerListUiShow()->showBox(std::move(box));
return weak;
}