mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 17:41:16 +00:00
Crash fix for inline results clearing. Crash fix for GIF starting.
This commit is contained in:
@@ -1725,7 +1725,6 @@ void StickerPanInner::refreshSavedGifs() {
|
||||
void StickerPanInner::inlineBotChanged() {
|
||||
_setGifCommand = false;
|
||||
refreshInlineRows(nullptr, nullptr, true);
|
||||
deleteUnusedInlineLayouts();
|
||||
}
|
||||
|
||||
void StickerPanInner::clearInlineRows(bool resultsDeleted) {
|
||||
@@ -1942,6 +1941,7 @@ int StickerPanInner::refreshInlineRows(UserData *bot, const InlineCacheEntry *en
|
||||
if (clearResults()) {
|
||||
if (resultsDeleted) {
|
||||
clearInlineRows(true);
|
||||
deleteUnusedInlineLayouts();
|
||||
}
|
||||
emit emptyInlineRows();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user