mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix possible crash.
This commit is contained in:
parent
bb6ab5314c
commit
96c0c30f7c
1 changed files with 3 additions and 1 deletions
|
@ -1731,11 +1731,14 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
|||
_membersDropdown.destroy();
|
||||
_scrollToAnimation.finish();
|
||||
_history = _migrated = nullptr;
|
||||
_list = nullptr;
|
||||
_peer = nullptr;
|
||||
_channel = NoChannel;
|
||||
_canSendMessages = false;
|
||||
_silent.destroy();
|
||||
updateBotKeyboard();
|
||||
} else {
|
||||
Assert(_list == nullptr);
|
||||
}
|
||||
|
||||
App::clearMousedItems();
|
||||
|
@ -1750,7 +1753,6 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
|||
|
||||
_membersDropdownShowTimer.stop();
|
||||
_scroll->takeWidget<HistoryInner>().destroy();
|
||||
_list = nullptr;
|
||||
|
||||
clearInlineBot();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue