mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Added updating of WebPage preview image on download finish.
This commit is contained in:
parent
11018d76f1
commit
69b2030c71
1 changed files with 8 additions and 0 deletions
|
@ -1005,6 +1005,14 @@ void ComposeControls::initWebpageProcess() {
|
||||||
return (update.peer.get() == peer);
|
return (update.peer.get() == peer);
|
||||||
}) | rpl::start_with_next(checkPreview, lifetime);
|
}) | rpl::start_with_next(checkPreview, lifetime);
|
||||||
|
|
||||||
|
_window->session().downloaderTaskFinished(
|
||||||
|
) | rpl::filter([=] {
|
||||||
|
return (*previewData)
|
||||||
|
&& ((*previewData)->document || (*previewData)->photo);
|
||||||
|
}) | rpl::start_with_next((
|
||||||
|
requestRepaint
|
||||||
|
), lifetime);
|
||||||
|
|
||||||
const auto fieldLinksParser =
|
const auto fieldLinksParser =
|
||||||
lifetime.make_state<MessageLinksParser>(_field);
|
lifetime.make_state<MessageLinksParser>(_field);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue