mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move App::histories to Data::Session.
This commit is contained in:
@@ -302,11 +302,11 @@ void BoxController::receivedCalls(const QVector<MTPMessage> &result) {
|
||||
_allLoaded = true;
|
||||
}
|
||||
|
||||
for_const (auto &message, result) {
|
||||
for (const auto &message : result) {
|
||||
auto msgId = IdFromMessage(message);
|
||||
auto peerId = PeerFromMessage(message);
|
||||
if (auto peer = App::peerLoaded(peerId)) {
|
||||
auto item = App::histories().addNewMessage(message, NewMessageExisting);
|
||||
auto item = Auth().data().addNewMessage(message, NewMessageExisting);
|
||||
insertRow(item, InsertWay::Append);
|
||||
} else {
|
||||
LOG(("API Error: a search results with not loaded peer %1").arg(peerId));
|
||||
|
Reference in New Issue
Block a user