mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-11 09:19:35 +00:00
Fix couple of possible crashes.
This commit is contained in:
parent
d2048f3c25
commit
c3fc91a6fc
@ -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()) {
|
||||
|
@ -210,7 +210,7 @@ void EmojiButton::setLoading(bool loading) {
|
||||
}
|
||||
if (loading) {
|
||||
_loading->start();
|
||||
} else {
|
||||
} else if (_loading) {
|
||||
_loading->stop();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user