mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Fix crash in dual background box show.
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user