mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Rename insertLocalMessage -> insertMessageToBlocks.
This commit is contained in:
parent
7ff74b9e1e
commit
213d7875ba
2 changed files with 4 additions and 4 deletions
|
@ -2898,11 +2898,11 @@ HistoryService *History::insertJoinedMessage() {
|
|||
channel->inviteDate,
|
||||
inviter,
|
||||
channel->inviteViaRequest);
|
||||
insertLocalMessage(_joinedMessage);
|
||||
insertMessageToBlocks(_joinedMessage);
|
||||
return _joinedMessage;
|
||||
}
|
||||
|
||||
void History::insertLocalMessage(not_null<HistoryItem*> item) {
|
||||
void History::insertMessageToBlocks(not_null<HistoryItem*> item) {
|
||||
Expects(item->mainView() == nullptr);
|
||||
|
||||
if (isEmpty()) {
|
||||
|
@ -2946,7 +2946,7 @@ void History::checkLocalMessages() {
|
|||
};
|
||||
for (const auto &item : _clientSideMessages) {
|
||||
if (!item->mainView() && goodDate(item->date())) {
|
||||
insertLocalMessage(item);
|
||||
insertMessageToBlocks(item);
|
||||
}
|
||||
}
|
||||
if (isChannel()
|
||||
|
|
|
@ -577,7 +577,7 @@ private:
|
|||
void createLocalDraftFromCloud();
|
||||
|
||||
HistoryService *insertJoinedMessage();
|
||||
void insertLocalMessage(not_null<HistoryItem*> item);
|
||||
void insertMessageToBlocks(not_null<HistoryItem*> item);
|
||||
|
||||
void setFolderPointer(Data::Folder *folder);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue