2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Move sendMessage and sendInlineResult to ApiWrap.

This commit is contained in:
John Preston
2018-06-26 16:34:38 +01:00
parent ff53404d5b
commit 33095966af
14 changed files with 362 additions and 331 deletions

View File

@@ -445,15 +445,13 @@ void Manager::notificationReplied(
const TextWithTags &reply) {
if (!peerId) return;
auto history = App::history(peerId);
const auto history = App::history(peerId);
auto message = MainWidget::MessageToSend(history);
auto message = ApiWrap::MessageToSend(history);
message.textWithTags = reply;
message.replyTo = (msgId > 0 && !history->peer->isUser()) ? msgId : 0;
message.clearDraft = false;
if (auto main = App::main()) {
main->sendMessage(message);
}
Auth().api().sendMessage(std::move(message));
}
void NativeManager::doShowNotification(HistoryItem *item, int forwardedCount) {