mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Send StoryReply info correctly.
This commit is contained in:
parent
04e7ce4408
commit
ff902f2a1f
2 changed files with 2 additions and 1 deletions
|
@ -376,7 +376,7 @@ void Controller::show(
|
|||
|
||||
_header->show({ .user = list.user, .date = item.date });
|
||||
_slider->show({ .index = _index, .total = list.total });
|
||||
_replyArea->show({ .user = list.user });
|
||||
_replyArea->show({ .user = list.user, .id = id.story });
|
||||
|
||||
if (_contentFaded) {
|
||||
togglePaused(true);
|
||||
|
|
|
@ -195,6 +195,7 @@ Api::SendAction ReplyArea::prepareSendAction(
|
|||
const auto history = _data.user->owner().history(_data.user);
|
||||
auto result = Api::SendAction(history, options);
|
||||
result.options.sendAs = _controls->sendAsPeer();
|
||||
result.replyTo.storyId = { .peer = _data.user->id, .story = _data.id };
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue