mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +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) {
|
void HistoryWidget::itemRemoved(not_null<const HistoryItem*> item) {
|
||||||
if (item == _replyEditMsg) {
|
if (item == _replyEditMsg && _editMsgId) {
|
||||||
if (_editMsgId) {
|
|
||||||
cancelEdit();
|
cancelEdit();
|
||||||
} else {
|
|
||||||
cancelReply();
|
|
||||||
}
|
}
|
||||||
|
if (item == _replyEditMsg && _replyToId) {
|
||||||
|
cancelReply();
|
||||||
}
|
}
|
||||||
while (item == _replyReturn) {
|
while (item == _replyReturn) {
|
||||||
calcNextReplyReturn();
|
calcNextReplyReturn();
|
||||||
|
|
Loading…
Add table
Reference in a new issue