mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in swipe-to-reply.
This commit is contained in:
parent
d0a8bd1f03
commit
36962b8c62
1 changed files with 2 additions and 1 deletions
|
@ -900,7 +900,8 @@ void RepliesWidget::setupSwipeReply() {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
const auto view = _inner->lookupItemByY(cursorTop);
|
const auto view = _inner->lookupItemByY(cursorTop);
|
||||||
if (!view->data()->isRegular()
|
if (!view
|
||||||
|
|| !view->data()->isRegular()
|
||||||
|| view->data()->isService()) {
|
|| view->data()->isService()) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue