mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix crash in edited and replied message destruction.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user