mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Replace peerMessagesUpdated with notifications.
This commit is contained in:
@@ -671,7 +671,9 @@ void checkForSwitchInlineButton(HistoryItem *item) {
|
||||
|
||||
} // namespace
|
||||
|
||||
HistoryItem *Histories::addNewMessage(const MTPMessage &msg, NewMessageType type) {
|
||||
HistoryItem *Histories::addNewMessage(
|
||||
const MTPMessage &msg,
|
||||
NewMessageType type) {
|
||||
auto peer = peerFromMessage(msg);
|
||||
if (!peer) return nullptr;
|
||||
|
||||
@@ -1204,6 +1206,7 @@ not_null<HistoryItem*> History::addNewItem(
|
||||
newItemAdded(item);
|
||||
}
|
||||
|
||||
Auth().data().notifyHistoryChangeDelayed(this);
|
||||
return item;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user