2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix macOS action

This commit is contained in:
Ilya Fedin
2025-08-25 06:18:38 +00:00
committed by John Preston
parent 48525de714
commit 0cf3325655
2 changed files with 6 additions and 5 deletions

View File

@@ -2461,13 +2461,14 @@ void ApiWrap::refreshFileReference(
const auto mediaStory = media ? media->storyId() : FullStoryId();
const auto storyId = mediaStory
? mediaStory
: FullStoryId(
: FullStoryId{
(IsStoryMsgId(item->id)
? item->history()->peer->id
: PeerId()),
(IsStoryMsgId(item->id)
? StoryIdFromMsgId(item->id)
: StoryId()));
: StoryId())
};
if (storyId) {
request(MTPstories_GetStoriesByID(
_session->data().peer(storyId.peer)->input,

View File

@@ -297,9 +297,9 @@ void MessageView::prepare(
? 0
: minFrom - kLeftShift;
textToCache = TextWithEntities(
minFrom > 0 ? kQEllipsis : QString())
.append(Text::Mid(std::move(textToCache), minFrom));
textToCache = (TextWithEntities{
minFrom > 0 ? kQEllipsis : QString()
}).append(Text::Mid(std::move(textToCache), minFrom));
}
}
_hasPlainLinkAtBegin = !textToCache.entities.empty()