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

Better channel log entry layout inside messages.

Also move HistoryService class to a separate module.
This commit is contained in:
John Preston
2017-06-22 18:11:41 +03:00
parent 0a39e7e2b1
commit cedf8a65e7
28 changed files with 1134 additions and 1012 deletions

View File

@@ -35,6 +35,8 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "apiwrap.h"
#include "dialogswidget.h"
#include "historywidget.h"
#include "history/history_message.h"
#include "history/history_media.h"
#include "history/history_service_layout.h"
#include "overviewwidget.h"
#include "lang/lang_keys.h"
@@ -1493,7 +1495,7 @@ void MainWidget::sendMessage(const MessageToSend &message) {
App::historyRegSentData(randomId, history->peer->id, sendingText);
MTPstring msgText(MTP_string(sendingText));
auto flags = newMessageFlags(history->peer) | MTPDmessage::Flag::f_entities; // unread, out
auto flags = NewMessageFlags(history->peer) | MTPDmessage::Flag::f_entities; // unread, out
auto sendFlags = MTPmessages_SendMessage::Flags(0);
if (replyTo) {
flags |= MTPDmessage::Flag::f_reply_to_msg_id;