mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +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:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user