Fix possible crash in chats list.

This commit is contained in:
John Preston
2026-04-14 12:46:19 +07:00
parent 05d2881c16
commit 59e64f56fa
@@ -2839,7 +2839,11 @@ void InnerWidget::dialogRowReplaced(
_selected = newRow;
}
if (_pressed == oldRow) {
setPressed(newRow, _pressedTopicJump, _pressedRightButton);
if (newRow) {
setPressed(newRow, _pressedTopicJump, _pressedRightButton);
} else {
clearPressed();
}
}
if (_dragging == oldRow) {
if (newRow) {