mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Replaced observable updatedNotifier() with rpl.
This commit is contained in:
@@ -386,9 +386,12 @@ MainWidget::MainWidget(
|
||||
connect(_dialogs, SIGNAL(cancelled()), this, SLOT(dialogsCancelled()));
|
||||
connect(this, SIGNAL(dialogsUpdated()), _dialogs, SLOT(onListScroll()));
|
||||
connect(_history, &HistoryWidget::cancelled, [=] { handleHistoryBack(); });
|
||||
subscribe(
|
||||
Media::Player::instance()->updatedNotifier(),
|
||||
[=](const Media::Player::TrackState &state) { handleAudioUpdate(state); });
|
||||
|
||||
Media::Player::instance()->updatedNotifier(
|
||||
) | rpl::start_with_next([=](const Media::Player::TrackState &state) {
|
||||
handleAudioUpdate(state);
|
||||
}, lifetime());
|
||||
|
||||
subscribe(session().calls().currentCallChanged(), [this](Calls::Call *call) { setCurrentCall(call); });
|
||||
|
||||
session().data().currentExportView(
|
||||
|
Reference in New Issue
Block a user