Skip to content

Commit 0cf3325

Browse files
ilya-fedinjohn-preston
authored andcommitted
Fix macOS action
1 parent 48525de commit 0cf3325

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Telegram/SourceFiles/apiwrap.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2461,13 +2461,14 @@ void ApiWrap::refreshFileReference(
24612461
const auto mediaStory = media ? media->storyId() : FullStoryId();
24622462
const auto storyId = mediaStory
24632463
? mediaStory
2464-
: FullStoryId(
2464+
: FullStoryId{
24652465
(IsStoryMsgId(item->id)
24662466
? item->history()->peer->id
24672467
: PeerId()),
24682468
(IsStoryMsgId(item->id)
24692469
? StoryIdFromMsgId(item->id)
2470-
: StoryId()));
2470+
: StoryId())
2471+
};
24712472
if (storyId) {
24722473
request(MTPstories_GetStoriesByID(
24732474
_session->data().peer(storyId.peer)->input,

Telegram/SourceFiles/dialogs/ui/dialogs_message_view.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ void MessageView::prepare(
297297
? 0
298298
: minFrom - kLeftShift;
299299

300-
textToCache = TextWithEntities(
301-
minFrom > 0 ? kQEllipsis : QString())
302-
.append(Text::Mid(std::move(textToCache), minFrom));
300+
textToCache = (TextWithEntities{
301+
minFrom > 0 ? kQEllipsis : QString()
302+
}).append(Text::Mid(std::move(textToCache), minFrom));
303303
}
304304
}
305305
_hasPlainLinkAtBegin = !textToCache.entities.empty()

0 commit comments

Comments
 (0)