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
+1
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()) {
+1 -1
View File
@@ -210,7 +210,7 @@ void EmojiButton::setLoading(bool loading) {
}
if (loading) {
_loading->start();
} else {
} else if (_loading) {
_loading->stop();
}
}