mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fix possible crash in swipe to reply.
This commit is contained in:
parent
ecb4ceec7b
commit
bb32c546d4
1 changed files with 3 additions and 2 deletions
|
@ -916,8 +916,9 @@ void RepliesWidget::setupSwipeReply() {
|
|||
result.callback = [=, itemId = view->data()->fullId()] {
|
||||
const auto still = show->session().data().message(itemId);
|
||||
const auto view = _inner->viewByPosition(still->position());
|
||||
const auto selected = view->selectedQuote(
|
||||
_inner->getSelectedTextRange(still));
|
||||
const auto selected = view
|
||||
? view->selectedQuote(_inner->getSelectedTextRange(still))
|
||||
: SelectedQuote();
|
||||
const auto replyToItemId = (selected.item
|
||||
? selected.item
|
||||
: still)->fullId();
|
||||
|
|
Loading…
Add table
Reference in a new issue