mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Rename insertLocalMessage -> insertMessageToBlocks.
This commit is contained in:
@@ -2898,11 +2898,11 @@ HistoryService *History::insertJoinedMessage() {
|
|||||||
channel->inviteDate,
|
channel->inviteDate,
|
||||||
inviter,
|
inviter,
|
||||||
channel->inviteViaRequest);
|
channel->inviteViaRequest);
|
||||||
insertLocalMessage(_joinedMessage);
|
insertMessageToBlocks(_joinedMessage);
|
||||||
return _joinedMessage;
|
return _joinedMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
void History::insertLocalMessage(not_null<HistoryItem*> item) {
|
void History::insertMessageToBlocks(not_null<HistoryItem*> item) {
|
||||||
Expects(item->mainView() == nullptr);
|
Expects(item->mainView() == nullptr);
|
||||||
|
|
||||||
if (isEmpty()) {
|
if (isEmpty()) {
|
||||||
@@ -2946,7 +2946,7 @@ void History::checkLocalMessages() {
|
|||||||
};
|
};
|
||||||
for (const auto &item : _clientSideMessages) {
|
for (const auto &item : _clientSideMessages) {
|
||||||
if (!item->mainView() && goodDate(item->date())) {
|
if (!item->mainView() && goodDate(item->date())) {
|
||||||
insertLocalMessage(item);
|
insertMessageToBlocks(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isChannel()
|
if (isChannel()
|
||||||
|
@@ -577,7 +577,7 @@ private:
|
|||||||
void createLocalDraftFromCloud();
|
void createLocalDraftFromCloud();
|
||||||
|
|
||||||
HistoryService *insertJoinedMessage();
|
HistoryService *insertJoinedMessage();
|
||||||
void insertLocalMessage(not_null<HistoryItem*> item);
|
void insertMessageToBlocks(not_null<HistoryItem*> item);
|
||||||
|
|
||||||
void setFolderPointer(Data::Folder *folder);
|
void setFolderPointer(Data::Folder *folder);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user