2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Implement per-topic shared media.

This commit is contained in:
John Preston
2022-10-11 19:08:19 +04:00
parent eec4b72d9a
commit 58b8eb8e96
58 changed files with 434 additions and 269 deletions

View File

@@ -1443,7 +1443,7 @@ void HidePinnedBar(
close();
auto &session = peer->session();
const auto migrated = peer->migrateFrom();
const auto top = Data::ResolveTopPinnedId(peer, migrated);
const auto top = Data::ResolveTopPinnedId(peer, MsgId(0), migrated);
const auto universal = !top
? MsgId(0)
: (migrated && !peerIsChannel(top.peer))