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

@@ -222,19 +222,6 @@ public:
Dialogs::IndexedList *dialogsList();
Dialogs::IndexedList *contactsNoDialogsList();
struct MessageToSend {
MessageToSend(not_null<History*> history) : history(history) {
}
not_null<History*> history;
TextWithTags textWithTags;
MsgId replyTo = 0;
WebPageId webPageId = 0;
bool clearDraft = true;
};
void sendMessage(const MessageToSend &message);
void saveRecentHashtags(const QString &text);
void unreadCountChanged(not_null<History*> history);
// While HistoryInner is not HistoryView::ListWidget.