mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
Retire shared media of a deleted topic with no object
Task: 2026/08/20/retire-forum-media-lists-without-topic-objects
This commit is contained in:
@@ -209,6 +209,12 @@ void Forum::applyTopicDeleted(MsgId rootId) {
|
||||
|
||||
const auto i = _topics.find(rootId);
|
||||
if (i == end(_topics)) {
|
||||
if (rootId) {
|
||||
session().storage().unload(Storage::SharedMediaUnloadThread(
|
||||
_history->peer->id,
|
||||
rootId,
|
||||
PeerId()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
const auto raw = i->second.get();
|
||||
|
||||
Reference in New Issue
Block a user