mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix changelogs blog link previews.
This commit is contained in:
@@ -87,7 +87,7 @@ Changelogs::Changelogs(not_null<AuthSession*> session, int oldVersion)
|
|||||||
, _oldVersion(oldVersion) {
|
, _oldVersion(oldVersion) {
|
||||||
_chatsSubscription = subscribe(
|
_chatsSubscription = subscribe(
|
||||||
_session->data().moreChatsLoaded(),
|
_session->data().moreChatsLoaded(),
|
||||||
[this] { requestCloudLogs(); });
|
[=] { requestCloudLogs(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<Changelogs> Changelogs::Create(
|
std::unique_ptr<Changelogs> Changelogs::Create(
|
||||||
@@ -150,9 +150,7 @@ void Changelogs::addLocalLogs() {
|
|||||||
void Changelogs::addLocalLog(const QString &text) {
|
void Changelogs::addLocalLog(const QString &text) {
|
||||||
auto textWithEntities = TextWithEntities{ text };
|
auto textWithEntities = TextWithEntities{ text };
|
||||||
TextUtilities::ParseEntities(textWithEntities, TextParseLinks);
|
TextUtilities::ParseEntities(textWithEntities, TextParseLinks);
|
||||||
_session->data().serviceNotification(
|
_session->data().serviceNotification(textWithEntities);
|
||||||
textWithEntities,
|
|
||||||
MTP_messageMediaEmpty());
|
|
||||||
_addedSomeLocal = true;
|
_addedSomeLocal = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -2992,7 +2992,8 @@ void Session::insertCheckedServiceNotification(
|
|||||||
}
|
}
|
||||||
const auto flags = MTPDmessage::Flag::f_entities
|
const auto flags = MTPDmessage::Flag::f_entities
|
||||||
| MTPDmessage::Flag::f_from_id
|
| MTPDmessage::Flag::f_from_id
|
||||||
| MTPDmessage_ClientFlag::f_clientside_unread;
|
| MTPDmessage_ClientFlag::f_clientside_unread
|
||||||
|
| MTPDmessage::Flag::f_media;
|
||||||
auto sending = TextWithEntities(), left = message;
|
auto sending = TextWithEntities(), left = message;
|
||||||
while (TextUtilities::CutPart(sending, left, MaxMessageSize)) {
|
while (TextUtilities::CutPart(sending, left, MaxMessageSize)) {
|
||||||
addNewMessage(
|
addNewMessage(
|
||||||
|
Reference in New Issue
Block a user