2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Support new stories link t.me/username/s/123.

This commit is contained in:
John Preston
2023-06-21 12:57:57 +04:00
parent eb260b91c1
commit 80bec508b6
2 changed files with 7 additions and 3 deletions

View File

@@ -779,7 +779,7 @@ QString ApiWrap::exportDirectStoryLink(not_null<Data::Story*> story) {
const auto fallback = [&] {
const auto base = user->username();
const auto story = QString::number(storyId.story);
const auto query = base + "?story=" + story;
const auto query = base + "/s" + story;
return session().createInternalLinkFull(query);
};
const auto i = _unlikelyStoryLinks.find(storyId);