mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix CDN downloads after authorization.
This commit is contained in:
parent
2671e67119
commit
d45c530db0
1 changed files with 9 additions and 10 deletions
|
@ -204,16 +204,15 @@ void Session::watchDcOptionsChanges() {
|
||||||
});
|
});
|
||||||
}, _lifetime);
|
}, _lifetime);
|
||||||
|
|
||||||
if (_instance->dcOptions().dcType(_shiftedDcId) == DcType::Cdn) {
|
_instance->dcOptions().cdnConfigChanged(
|
||||||
_instance->dcOptions().cdnConfigChanged(
|
) | rpl::filter([=] {
|
||||||
) | rpl::filter([=] {
|
return (_private != nullptr)
|
||||||
return (_private != nullptr);
|
&& (_instance->dcOptions().dcType(_shiftedDcId) == DcType::Cdn);
|
||||||
}) | rpl::start_with_next([=] {
|
}) | rpl::start_with_next([=] {
|
||||||
InvokeQueued(_private, [captured = _private] {
|
InvokeQueued(_private, [captured = _private] {
|
||||||
captured->cdnConfigChanged();
|
captured->cdnConfigChanged();
|
||||||
});
|
});
|
||||||
}, _lifetime);
|
}, _lifetime);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::start() {
|
void Session::start() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue