Skip to content

Commit

Permalink
Fix possible crash in swipe-to-reply.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 13, 2024
1 parent d0a8bd1 commit 36962b8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 36962b8

Please sign in to comment.