mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-10-11 13:47:24 +00:00
Support shared media / pins for sublists.
This commit is contained in:
@@ -72,7 +72,10 @@ Forum::~Forum() {
|
||||
auto &changes = session().changes();
|
||||
const auto peerId = _history->peer->id;
|
||||
for (const auto &[rootId, topic] : _topics) {
|
||||
storage.unload(Storage::SharedMediaUnloadThread(peerId, rootId));
|
||||
storage.unload(Storage::SharedMediaUnloadThread(
|
||||
peerId,
|
||||
rootId,
|
||||
PeerId()));
|
||||
_history->setForwardDraft(rootId, PeerId(), {});
|
||||
|
||||
const auto raw = topic.get();
|
||||
@@ -198,7 +201,8 @@ void Forum::applyTopicDeleted(MsgId rootId) {
|
||||
_history->destroyMessagesByTopic(rootId);
|
||||
session().storage().unload(Storage::SharedMediaUnloadThread(
|
||||
_history->peer->id,
|
||||
rootId));
|
||||
rootId,
|
||||
PeerId()));
|
||||
_history->setForwardDraft(rootId, PeerId(), {});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user