Fix crash in dual background box show.

This commit is contained in:
John Preston 2019-02-01 11:32:34 +03:00
parent 9b57725b8c
commit a133b43eed
1 changed files with 2 additions and 2 deletions

View File

@ -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,