2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move some classes to separate modules.

MessageField, BotKeyboard, HistoryInner from historywidget.
This commit is contained in:
John Preston
2017-04-08 16:27:53 +03:00
parent 570cd9bdfa
commit 330fc35800
13 changed files with 3389 additions and 3187 deletions

View File

@@ -30,6 +30,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "window/top_bar_widget.h"
#include "data/data_drafts.h"
#include "ui/widgets/dropdown_menu.h"
#include "chat_helpers/message_field.h"
#include "observer_peer.h"
#include "apiwrap.h"
#include "dialogswidget.h"
@@ -1167,7 +1168,7 @@ void MainWidget::sendMessage(const MessageToSend &message) {
saveRecentHashtags(textWithTags.text);
EntitiesInText sendingEntities, leftEntities = entitiesFromTextTags(textWithTags.tags);
EntitiesInText sendingEntities, leftEntities = ConvertTextTagsToEntities(textWithTags.tags);
auto prepareFlags = itemTextOptions(history, App::self()).flags;
QString sendingText, leftText = prepareTextWithEntities(textWithTags.text, prepareFlags, &leftEntities);