mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-07 01:45:39 +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:
@@ -36,7 +36,7 @@ void SendBotCallbackData(
|
||||
int column,
|
||||
std::optional<MTPInputCheckPasswordSRP> password = std::nullopt,
|
||||
Fn<void(const MTP::Error &)> handleError = nullptr) {
|
||||
if (!IsServerMsgId(item->id)) {
|
||||
if (!item->isRegular()) {
|
||||
return;
|
||||
}
|
||||
const auto history = item->history();
|
||||
@@ -150,7 +150,7 @@ void SendBotCallbackDataWithPassword(
|
||||
not_null<HistoryItem*> item,
|
||||
int row,
|
||||
int column) {
|
||||
if (!IsServerMsgId(item->id)) {
|
||||
if (!item->isRegular()) {
|
||||
return;
|
||||
}
|
||||
const auto history = item->history();
|
||||
|
Reference in New Issue
Block a user