mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Support shared media / pins for sublists.
This commit is contained in:
@@ -894,6 +894,7 @@ void Instance::show(
|
||||
: nullptr;
|
||||
const auto item = (HistoryItem*)nullptr;
|
||||
const auto topicRootId = MsgId(0);
|
||||
const auto monoforumPeerId = PeerId(0);
|
||||
if (event.context.startsWith("-photo")) {
|
||||
const auto id = event.context.mid(6).toULongLong();
|
||||
const auto photo = _shownSession->data().photo(id);
|
||||
@@ -902,7 +903,8 @@ void Instance::show(
|
||||
controller,
|
||||
photo,
|
||||
item,
|
||||
topicRootId
|
||||
topicRootId,
|
||||
monoforumPeerId
|
||||
});
|
||||
}
|
||||
} else if (event.context.startsWith("-video")) {
|
||||
@@ -913,7 +915,8 @@ void Instance::show(
|
||||
controller,
|
||||
video,
|
||||
item,
|
||||
topicRootId
|
||||
topicRootId,
|
||||
monoforumPeerId
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user