mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Some internal HistoryItem refactoring.
Replace most IsServerMsgId / id <=> 0 with isRegular(). Track isLocal / isHistoryEntry in flags. Remove toHistoryMessage.
This commit is contained in:
@@ -491,7 +491,8 @@ FileLoadTask::FileLoadTask(
|
||||
, _type(type)
|
||||
, _caption(caption) {
|
||||
Expects(to.options.scheduled
|
||||
|| (to.replaceMediaOf == 0 || IsServerMsgId(to.replaceMediaOf)));
|
||||
|| !to.replaceMediaOf
|
||||
|| IsServerMsgId(to.replaceMediaOf));
|
||||
}
|
||||
|
||||
FileLoadTask::FileLoadTask(
|
||||
|
Reference in New Issue
Block a user