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

Move message client flags to a separate field.

This commit is contained in:
John Preston
2019-08-09 20:19:23 +01:00
parent 4869ce2247
commit 02b65a42f7
25 changed files with 393 additions and 89 deletions

View File

@@ -271,12 +271,14 @@ AdminLog::OwnedItem GenerateCommentItem(
using Flag = MTPDmessage::Flag;
const auto id = ServerMaxMsgId + (ServerMaxMsgId / 2);
const auto flags = Flag::f_entities | Flag::f_from_id | Flag::f_out;
const auto clientFlags = MTPDmessage_ClientFlags();
const auto replyTo = 0;
const auto viaBotId = 0;
const auto item = history->owner().makeMessage(
history,
id,
flags,
clientFlags,
replyTo,
viaBotId,
base::unixtime::now(),
@@ -319,7 +321,8 @@ AdminLog::OwnedItem GenerateContactItem(
MTP_long(0));
const auto item = history->owner().makeMessage(
history,
message.c_message());
message.c_message(),
MTPDmessage_ClientFlags());
return AdminLog::OwnedItem(delegate, item);
}