mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix changelogs blog link previews.
This commit is contained in:
parent
45fda44924
commit
dbb7568b92
2 changed files with 4 additions and 5 deletions
|
@ -87,7 +87,7 @@ Changelogs::Changelogs(not_null<AuthSession*> session, int oldVersion)
|
|||
, _oldVersion(oldVersion) {
|
||||
_chatsSubscription = subscribe(
|
||||
_session->data().moreChatsLoaded(),
|
||||
[this] { requestCloudLogs(); });
|
||||
[=] { requestCloudLogs(); });
|
||||
}
|
||||
|
||||
std::unique_ptr<Changelogs> Changelogs::Create(
|
||||
|
@ -150,9 +150,7 @@ void Changelogs::addLocalLogs() {
|
|||
void Changelogs::addLocalLog(const QString &text) {
|
||||
auto textWithEntities = TextWithEntities{ text };
|
||||
TextUtilities::ParseEntities(textWithEntities, TextParseLinks);
|
||||
_session->data().serviceNotification(
|
||||
textWithEntities,
|
||||
MTP_messageMediaEmpty());
|
||||
_session->data().serviceNotification(textWithEntities);
|
||||
_addedSomeLocal = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -2992,7 +2992,8 @@ void Session::insertCheckedServiceNotification(
|
|||
}
|
||||
const auto flags = MTPDmessage::Flag::f_entities
|
||||
| MTPDmessage::Flag::f_from_id
|
||||
| MTPDmessage_ClientFlag::f_clientside_unread;
|
||||
| MTPDmessage_ClientFlag::f_clientside_unread
|
||||
| MTPDmessage::Flag::f_media;
|
||||
auto sending = TextWithEntities(), left = message;
|
||||
while (TextUtilities::CutPart(sending, left, MaxMessageSize)) {
|
||||
addNewMessage(
|
||||
|
|
Loading…
Add table
Reference in a new issue