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

Detach ComposeControls from SessionController.

This commit is contained in:
John Preston
2023-05-02 13:33:19 +04:00
parent 665467b02d
commit 65afa2c402
178 changed files with 2080 additions and 1869 deletions

View File

@@ -35,7 +35,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/chat/chat_theme.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/shadow.h"
#include "ui/toasts/common_toasts.h"
#include "ui/widgets/dropdown_menu.h"
#include "ui/image/image.h"
#include "ui/focus_persister.h"
@@ -941,7 +940,7 @@ void MainWidget::setCurrentGroupCall(Calls::GroupCall *call) {
void MainWidget::createCallTopBar() {
Expects(_currentCall != nullptr || _currentGroupCall != nullptr);
const auto show = std::make_shared<Window::Show>(controller());
const auto show = controller()->uiShow();
_callTopBar.create(
this,
(_currentCall
@@ -1221,10 +1220,7 @@ void MainWidget::showChooseReportMessages(
peer,
SectionShow::Way::Forward,
ShowForChooseMessagesMsgId);
Ui::ShowMultilineToast({
.parentOverride = Window::Show(controller()).toastParent(),
.text = { tr::lng_report_please_select_messages(tr::now) },
});
controller()->showToast(tr::lng_report_please_select_messages(tr::now));
}
void MainWidget::clearChooseReportMessages() {