mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 00:15:42 +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 mediaStory = media ? media->storyId() : FullStoryId();
|
||||||
const auto storyId = mediaStory
|
const auto storyId = mediaStory
|
||||||
? mediaStory
|
? mediaStory
|
||||||
: FullStoryId(
|
: FullStoryId{
|
||||||
(IsStoryMsgId(item->id)
|
(IsStoryMsgId(item->id)
|
||||||
? item->history()->peer->id
|
? item->history()->peer->id
|
||||||
: PeerId()),
|
: PeerId()),
|
||||||
(IsStoryMsgId(item->id)
|
(IsStoryMsgId(item->id)
|
||||||
? StoryIdFromMsgId(item->id)
|
? StoryIdFromMsgId(item->id)
|
||||||
: StoryId()));
|
: StoryId())
|
||||||
|
};
|
||||||
if (storyId) {
|
if (storyId) {
|
||||||
request(MTPstories_GetStoriesByID(
|
request(MTPstories_GetStoriesByID(
|
||||||
_session->data().peer(storyId.peer)->input,
|
_session->data().peer(storyId.peer)->input,
|
||||||
|
@@ -297,9 +297,9 @@ void MessageView::prepare(
|
|||||||
? 0
|
? 0
|
||||||
: minFrom - kLeftShift;
|
: minFrom - kLeftShift;
|
||||||
|
|
||||||
textToCache = TextWithEntities(
|
textToCache = (TextWithEntities{
|
||||||
minFrom > 0 ? kQEllipsis : QString())
|
minFrom > 0 ? kQEllipsis : QString()
|
||||||
.append(Text::Mid(std::move(textToCache), minFrom));
|
}).append(Text::Mid(std::move(textToCache), minFrom));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_hasPlainLinkAtBegin = !textToCache.entities.empty()
|
_hasPlainLinkAtBegin = !textToCache.entities.empty()
|
||||||
|
Reference in New Issue
Block a user