2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API scheme on layer 160.

This commit is contained in:
John Preston
2023-06-13 22:07:29 +04:00
parent 881867186a
commit cdb5f4dc1e
4 changed files with 12 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ constexpr auto kSavedPerPage = 100;
using UpdateFlag = StoryUpdate::Flag;
[[nodiscard]] std::optional<StoryMedia> ParseMedia(
not_null<Session*> owner,
const MTPMessageMedia &media) {
not_null<Session*> owner,
const MTPMessageMedia &media) {
return media.match([&](const MTPDmessageMediaPhoto &data)
-> std::optional<StoryMedia> {
if (const auto photo = data.vphoto()) {