mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix crash in edited and replied message destruction.
This commit is contained in:
parent
41f2cc6d81
commit
20ea3af2f0
1 changed files with 5 additions and 6 deletions
|
@ -4943,12 +4943,11 @@ void HistoryWidget::updateControlsGeometry() {
|
|||
}
|
||||
|
||||
void HistoryWidget::itemRemoved(not_null<const HistoryItem*> item) {
|
||||
if (item == _replyEditMsg) {
|
||||
if (_editMsgId) {
|
||||
cancelEdit();
|
||||
} else {
|
||||
cancelReply();
|
||||
}
|
||||
if (item == _replyEditMsg && _editMsgId) {
|
||||
cancelEdit();
|
||||
}
|
||||
if (item == _replyEditMsg && _replyToId) {
|
||||
cancelReply();
|
||||
}
|
||||
while (item == _replyReturn) {
|
||||
calcNextReplyReturn();
|
||||
|
|
Loading…
Add table
Reference in a new issue