mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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);
|
||||
|
||||
if (_instance->dcOptions().dcType(_shiftedDcId) == DcType::Cdn) {
|
||||
_instance->dcOptions().cdnConfigChanged(
|
||||
) | rpl::filter([=] {
|
||||
return (_private != nullptr);
|
||||
}) | rpl::start_with_next([=] {
|
||||
InvokeQueued(_private, [captured = _private] {
|
||||
captured->cdnConfigChanged();
|
||||
});
|
||||
}, _lifetime);
|
||||
}
|
||||
_instance->dcOptions().cdnConfigChanged(
|
||||
) | rpl::filter([=] {
|
||||
return (_private != nullptr)
|
||||
&& (_instance->dcOptions().dcType(_shiftedDcId) == DcType::Cdn);
|
||||
}) | rpl::start_with_next([=] {
|
||||
InvokeQueued(_private, [captured = _private] {
|
||||
captured->cdnConfigChanged();
|
||||
});
|
||||
}, _lifetime);
|
||||
}
|
||||
|
||||
void Session::start() {
|
||||
|
|
Loading…
Add table
Reference in a new issue