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

Don't pass wide fake MsgId through MTPMessage.

This commit is contained in:
John Preston
2021-09-30 15:30:39 +04:00
parent 4ea72f8f89
commit ead695b101
16 changed files with 87 additions and 70 deletions

View File

@@ -866,11 +866,12 @@ HistoryService::PreparedText HistoryService::prepareCallScheduledText(
HistoryService::HistoryService(
not_null<History*> history,
MsgId id,
const MTPDmessage &data,
MessageFlags localFlags)
: HistoryItem(
history,
data.vid().v,
id,
FlagsFromMTP(data.vflags().v) | localFlags,
data.vdate().v,
data.vfrom_id() ? peerFromMTP(*data.vfrom_id()) : PeerId(0)) {
@@ -880,11 +881,12 @@ HistoryService::HistoryService(
HistoryService::HistoryService(
not_null<History*> history,
MsgId id,
const MTPDmessageService &data,
MessageFlags localFlags)
: HistoryItem(
history,
data.vid().v,
id,
FlagsFromMTP(data.vflags().v) | localFlags,
data.vdate().v,
data.vfrom_id() ? peerFromMTP(*data.vfrom_id()) : PeerId(0)) {