mirror of https://github.com/procxx/kepka.git
Fix crash in dual background box show.
This commit is contained in:
parent
9b57725b8c
commit
a133b43eed
|
@ -55,7 +55,7 @@ AdminLog::OwnedItem GenerateTextItem(
|
||||||
Expects(history->peer->isUser());
|
Expects(history->peer->isUser());
|
||||||
|
|
||||||
using Flag = MTPDmessage::Flag;
|
using Flag = MTPDmessage::Flag;
|
||||||
const auto id = ServerMaxMsgId + (ServerMaxMsgId / 3) + (out ? 1 : 0);
|
static auto id = ServerMaxMsgId + (ServerMaxMsgId / 3);
|
||||||
const auto flags = Flag::f_entities
|
const auto flags = Flag::f_entities
|
||||||
| Flag::f_from_id
|
| Flag::f_from_id
|
||||||
| (out ? Flag::f_out : Flag(0));
|
| (out ? Flag::f_out : Flag(0));
|
||||||
|
@ -63,7 +63,7 @@ AdminLog::OwnedItem GenerateTextItem(
|
||||||
const auto viaBotId = 0;
|
const auto viaBotId = 0;
|
||||||
const auto item = new HistoryMessage(
|
const auto item = new HistoryMessage(
|
||||||
history,
|
history,
|
||||||
id,
|
++id,
|
||||||
flags,
|
flags,
|
||||||
replyTo,
|
replyTo,
|
||||||
viaBotId,
|
viaBotId,
|
||||||
|
|
Loading…
Reference in New Issue