mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Handle located groups as public.
This commit is contained in:
@@ -789,7 +789,7 @@ std::unique_ptr<Data::Media> HistoryMessage::CreateMedia(
|
||||
return media.vgeo.match([&](const MTPDgeoPoint &point) -> Result {
|
||||
return std::make_unique<Data::MediaLocation>(
|
||||
item,
|
||||
LocationCoords(point));
|
||||
Data::LocationPoint(point));
|
||||
}, [](const MTPDgeoPointEmpty &) -> Result {
|
||||
return nullptr;
|
||||
});
|
||||
@@ -797,7 +797,7 @@ std::unique_ptr<Data::Media> HistoryMessage::CreateMedia(
|
||||
return media.vgeo.match([&](const MTPDgeoPoint &point) -> Result {
|
||||
return std::make_unique<Data::MediaLocation>(
|
||||
item,
|
||||
LocationCoords(point));
|
||||
Data::LocationPoint(point));
|
||||
}, [](const MTPDgeoPointEmpty &) -> Result {
|
||||
return nullptr;
|
||||
});
|
||||
@@ -805,7 +805,7 @@ std::unique_ptr<Data::Media> HistoryMessage::CreateMedia(
|
||||
return media.vgeo.match([&](const MTPDgeoPoint &point) -> Result {
|
||||
return std::make_unique<Data::MediaLocation>(
|
||||
item,
|
||||
LocationCoords(point),
|
||||
Data::LocationPoint(point),
|
||||
qs(media.vtitle),
|
||||
qs(media.vaddress));
|
||||
}, [](const MTPDgeoPointEmpty &data) -> Result {
|
||||
|
Reference in New Issue
Block a user