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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user