2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Move some calls from App namespace.

This commit is contained in:
John Preston
2019-01-18 16:27:37 +04:00
parent e7804d014d
commit 4111da1dd0
74 changed files with 896 additions and 852 deletions

View File

@@ -396,7 +396,7 @@ Manager::DisplayOptions Manager::getNotificationOptions(HistoryItem *item) {
void Manager::notificationActivated(PeerId peerId, MsgId msgId) {
onBeforeNotificationActivated(peerId, msgId);
if (auto window = App::wnd()) {
auto history = App::history(peerId);
auto history = Auth().data().history(peerId);
window->showFromTray();
window->reActivateWindow();
if (Messenger::Instance().locked()) {
@@ -447,7 +447,7 @@ void Manager::notificationReplied(
const TextWithTags &reply) {
if (!peerId) return;
const auto history = App::history(peerId);
const auto history = Auth().data().history(peerId);
auto message = ApiWrap::MessageToSend(history);
message.textWithTags = reply;