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

Mark all types of local history items.

This commit is contained in:
John Preston
2019-09-06 10:53:44 +03:00
parent b0c5a75fb9
commit 7893ad0558
6 changed files with 26 additions and 26 deletions

View File

@@ -271,7 +271,7 @@ 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 clientFlags = MTPDmessage_ClientFlag::f_fake_history_item;
const auto replyTo = 0;
const auto viaBotId = 0;
const auto item = history->owner().makeMessage(
@@ -324,7 +324,7 @@ AdminLog::OwnedItem GenerateContactItem(
const auto item = history->owner().makeMessage(
history,
message.c_message(),
MTPDmessage_ClientFlags());
MTPDmessage_ClientFlag::f_fake_history_item);
return AdminLog::OwnedItem(delegate, item);
}