Fix URL previews on modern Matrix servers never loading

This was a regression in 5d5295d06d where
the job never connected to the onSuccess function.
This commit is contained in:
Joshua Goins
2025-09-09 11:54:43 +02:00
parent 5b4d3df6ee
commit 1a1190d7bd

View File

@@ -81,7 +81,7 @@ void LinkPreviewer::loadUrlPreview()
};
if (conn->supportedMatrixSpecVersions().contains("v1.11"_L1)) {
conn->callApi<GetUrlPreviewAuthedJob>(m_url);
conn->callApi<GetUrlPreviewAuthedJob>(m_url).onResult(onSuccess);
} else {
QT_IGNORE_DEPRECATIONS(conn->callApi<GetUrlPreviewJob>(m_url).onResult(onSuccess);)
}