2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added ability to pass Api::SendOptions from TabbedSelector.

This commit is contained in:
23rd
2020-07-24 11:22:45 +03:00
committed by John Preston
parent b71062561a
commit 759e802eba
12 changed files with 35 additions and 22 deletions

View File

@@ -165,7 +165,7 @@ GifsListWidget::GifsListWidget(
});
}
rpl::producer<not_null<DocumentData*>> GifsListWidget::fileChosen() const {
rpl::producer<TabbedSelector::FileChosen> GifsListWidget::fileChosen() const {
return _fileChosen.events();
}
@@ -391,7 +391,7 @@ void GifsListWidget::selectInlineResult(int row, int column) {
const auto media = document->activeMediaView();
const auto preview = Data::VideoPreviewState(media.get());
if (ctrl || (media && preview.loaded())) {
_fileChosen.fire_copy(document);
_fileChosen.fire_copy({ .document = document });
} else if (!preview.usingThumbnail()) {
if (preview.loading()) {
document->cancel();