mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed unused simple sendExistingDocument methods from sections.
This commit is contained in:
parent
f0209c9d6e
commit
679350e23d
6 changed files with 7 additions and 25 deletions
|
@ -1325,11 +1325,6 @@ void RepliesWidget::refreshJoinGroupButton() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RepliesWidget::sendExistingDocument(
|
|
||||||
not_null<DocumentData*> document) {
|
|
||||||
sendExistingDocument(document, {}, std::nullopt);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool RepliesWidget::sendExistingDocument(
|
bool RepliesWidget::sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
|
|
|
@ -301,7 +301,6 @@ private:
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
bool ctrlShiftEnter);
|
bool ctrlShiftEnter);
|
||||||
|
|
||||||
void sendExistingDocument(not_null<DocumentData*> document);
|
|
||||||
bool sendExistingDocument(
|
bool sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
|
|
|
@ -340,7 +340,12 @@ void ScheduledWidget::setupComposeControls() {
|
||||||
_composeControls->fileChosen(
|
_composeControls->fileChosen(
|
||||||
) | rpl::start_with_next([=](ChatHelpers::FileChosen data) {
|
) | rpl::start_with_next([=](ChatHelpers::FileChosen data) {
|
||||||
controller()->hideLayer(anim::type::normal);
|
controller()->hideLayer(anim::type::normal);
|
||||||
sendExistingDocument(data.document);
|
const auto document = data.document;
|
||||||
|
const auto callback = crl::guard(this, [=](Api::SendOptions options) {
|
||||||
|
sendExistingDocument(document, options);
|
||||||
|
});
|
||||||
|
controller()->show(
|
||||||
|
PrepareScheduleBox(this, _show, sendMenuDetails(), callback));
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_composeControls->photoChosen(
|
_composeControls->photoChosen(
|
||||||
|
@ -808,15 +813,6 @@ void ScheduledWidget::edit(
|
||||||
_composeControls->focus();
|
_composeControls->focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScheduledWidget::sendExistingDocument(
|
|
||||||
not_null<DocumentData*> document) {
|
|
||||||
const auto callback = [=](Api::SendOptions options) {
|
|
||||||
sendExistingDocument(document, options);
|
|
||||||
};
|
|
||||||
controller()->show(
|
|
||||||
PrepareScheduleBox(this, _show, sendMenuDetails(), callback));
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ScheduledWidget::sendExistingDocument(
|
bool ScheduledWidget::sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options) {
|
Api::SendOptions options) {
|
||||||
|
|
|
@ -251,7 +251,6 @@ private:
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
bool ctrlShiftEnter);
|
bool ctrlShiftEnter);
|
||||||
|
|
||||||
void sendExistingDocument(not_null<DocumentData*> document);
|
|
||||||
bool sendExistingDocument(
|
bool sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options);
|
Api::SendOptions options);
|
||||||
|
|
|
@ -118,7 +118,6 @@ private:
|
||||||
bool ctrlShiftEnter);
|
bool ctrlShiftEnter);
|
||||||
void finishSending(bool skipToast = false);
|
void finishSending(bool skipToast = false);
|
||||||
|
|
||||||
void sendExistingDocument(not_null<DocumentData*> document);
|
|
||||||
bool sendExistingDocument(
|
bool sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
|
|
|
@ -214,7 +214,6 @@ private:
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
bool ctrlShiftEnter);
|
bool ctrlShiftEnter);
|
||||||
|
|
||||||
void sendExistingDocument(not_null<DocumentData*> document);
|
|
||||||
bool sendExistingDocument(
|
bool sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
|
@ -696,7 +695,7 @@ void ShortcutMessages::setupComposeControls() {
|
||||||
_composeControls->fileChosen(
|
_composeControls->fileChosen(
|
||||||
) | rpl::start_with_next([=](ChatHelpers::FileChosen data) {
|
) | rpl::start_with_next([=](ChatHelpers::FileChosen data) {
|
||||||
_controller->hideLayer(anim::type::normal);
|
_controller->hideLayer(anim::type::normal);
|
||||||
sendExistingDocument(data.document);
|
sendExistingDocument(data.document, {}, std::nullopt);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
_composeControls->photoChosen(
|
_composeControls->photoChosen(
|
||||||
|
@ -1494,11 +1493,6 @@ void ShortcutMessages::doSetInnerFocus() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShortcutMessages::sendExistingDocument(
|
|
||||||
not_null<DocumentData*> document) {
|
|
||||||
sendExistingDocument(document, {}, std::nullopt);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ShortcutMessages::sendExistingDocument(
|
bool ShortcutMessages::sendExistingDocument(
|
||||||
not_null<DocumentData*> document,
|
not_null<DocumentData*> document,
|
||||||
Api::SendOptions options,
|
Api::SendOptions options,
|
||||||
|
|
Loading…
Add table
Reference in a new issue