Send StoryReply info correctly.

This commit is contained in:
John Preston 2023-05-25 14:56:32 +04:00
parent 04e7ce4408
commit ff902f2a1f
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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;
}