Fix possible crash in swipe-to-reply.

This commit is contained in:
John Preston 2024-09-13 21:03:21 +04:00
parent d0a8bd1f03
commit 36962b8c62

View File

@ -900,7 +900,8 @@ void RepliesWidget::setupSwipeReply() {
return result;
}
const auto view = _inner->lookupItemByY(cursorTop);
if (!view->data()->isRegular()
if (!view
|| !view->data()->isRegular()
|| view->data()->isService()) {
return result;
}