mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Support grouped media rendering.
This commit is contained in:
@@ -4521,7 +4521,9 @@ void HistoryWidget::onThumbDocumentUploaded(
|
||||
|
||||
void HistoryWidget::onPhotoProgress(const FullMsgId &newId) {
|
||||
if (const auto item = App::histItemById(newId)) {
|
||||
const auto photo = (item->getMedia() && item->getMedia()->type() == MediaTypePhoto) ? static_cast<HistoryPhoto*>(item->getMedia())->photo() : nullptr;
|
||||
const auto photo = (item->getMedia() && item->getMedia()->type() == MediaTypePhoto)
|
||||
? static_cast<HistoryPhoto*>(item->getMedia())->photo().get()
|
||||
: nullptr;
|
||||
updateSendAction(item->history(), SendAction::Type::UploadPhoto, 0);
|
||||
Auth().data().requestItemRepaint(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user