mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove App::app(), App::uploader(), App::api().
Also use Auth() instead of AuthSession::Current*().
This commit is contained in:
@@ -69,7 +69,7 @@ Instance::Instance()
|
||||
// While we have one Media::Player::Instance for all authsessions we have to do this.
|
||||
auto handleAuthSessionChange = [this] {
|
||||
if (AuthSession::Exists()) {
|
||||
subscribe(AuthSession::Current().calls().currentCallChanged(), [this](Calls::Call *call) {
|
||||
subscribe(Auth().calls().currentCallChanged(), [this](Calls::Call *call) {
|
||||
if (call) {
|
||||
pause(AudioMsgId::Type::Voice);
|
||||
pause(AudioMsgId::Type::Song);
|
||||
|
Reference in New Issue
Block a user