mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix macOS action
This commit is contained in:
@@ -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,
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user