mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Move call management to Core::App.
This commit is contained in:
@@ -20,6 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/widgets/dropdown_menu.h"
|
||||
#include "ui/wrap/fade_wrap.h"
|
||||
#include "ui/search_field_controller.h"
|
||||
#include "core/application.h"
|
||||
#include "calls/calls_instance.h"
|
||||
#include "core/shortcuts.h"
|
||||
#include "window/window_session_controller.h"
|
||||
@@ -500,7 +501,7 @@ void WrapWidget::addProfileCallsButton() {
|
||||
? st::infoLayerTopBarCall
|
||||
: st::infoTopBarCall))
|
||||
)->addClickHandler([=] {
|
||||
user->session().calls().startOutgoingCall(user);
|
||||
Core::App().calls().startOutgoingCall(user);
|
||||
});
|
||||
}, _topBar->lifetime());
|
||||
|
||||
|
Reference in New Issue
Block a user