2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix alpha version changelog notification.

We should call window->serviceNotification() because it checks for
the service chat history being loaded before adding the message.

The method in MainWidget was renamed to prevent bugs in the future.
This commit is contained in:
John Preston
2017-06-30 14:30:11 +03:00
parent 5fe1175602
commit 42febdb240
4 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ void ApiWrap::addLocalAlphaChangelogs(int oldAppVersion) {
auto text = qsl("New in version %1:\n\n").arg(changeVersionString) + QString::fromUtf8(changes).trimmed();
auto textWithEntities = TextWithEntities { text };
textParseEntities(textWithEntities.text, TextParseLinks, &textWithEntities.entities);
App::main()->serviceNotification(textWithEntities, MTP_messageMediaEmpty(), unixtime());
App::wnd()->serviceNotification(textWithEntities, MTP_messageMediaEmpty(), unixtime());
}
};