2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix couple of possible crashes.

This commit is contained in:
John Preston
2018-05-08 21:06:56 +03:00
parent d2048f3c25
commit c3fc91a6fc
2 changed files with 2 additions and 1 deletions

View File

@@ -3751,6 +3751,7 @@ void ApiWrap::uploadAlbumMedia(
const auto item = App::histItemById(localId);
if (!item) {
failed();
return;
}
if (const auto media = item->media()) {
if (const auto photo = media->photo()) {