mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
@@ -319,7 +319,7 @@ void ScheduledMessages::apply(
|
||||
} else {
|
||||
Assert(!list.itemById.contains(local->id));
|
||||
Assert(!list.idByItem.contains(local));
|
||||
local->setRealId(local->history()->nextNonHistoryEntryId());
|
||||
local->setRealId(local->history()->scheduledMessageId(id));
|
||||
list.idByItem.emplace(local, id);
|
||||
list.itemById.emplace(id, local);
|
||||
}
|
||||
@@ -467,7 +467,7 @@ HistoryItem *ScheduledMessages::append(
|
||||
}
|
||||
|
||||
const auto item = _session->data().addNewMessage(
|
||||
history->nextNonHistoryEntryId(),
|
||||
history->scheduledMessageId(id),
|
||||
PrepareMessage(message),
|
||||
MessageFlags(), // localFlags
|
||||
NewMessageType::Existing);
|
||||
|
Reference in New Issue
Block a user