mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45: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) {
|
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();
|
||||||
|
Reference in New Issue
Block a user