mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added updating of WebPage preview image on download finish.
This commit is contained in:
@@ -1005,6 +1005,14 @@ void ComposeControls::initWebpageProcess() {
|
||||
return (update.peer.get() == peer);
|
||||
}) | 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 =
|
||||
lifetime.make_state<MessageLinksParser>(_field);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user