Send as a channel in HistoryWidget.

This commit is contained in:
John Preston
2021-11-09 19:24:13 +04:00
parent 1bd74fe478
commit 773755d70e
32 changed files with 221 additions and 156 deletions
@@ -670,8 +670,7 @@ void EditCaptionBox::save() {
options.scheduled = item->isScheduled() ? item->date() : 0;
if (!_preparedList.files.empty()) {
auto action = Api::SendAction(item->history());
action.options = options;
auto action = Api::SendAction(item->history(), options);
action.replaceMediaOf = item->fullId().msg;
Storage::ApplyModifications(_preparedList);