Fix display of pinned messages in sublists.

This commit is contained in:
John Preston
2025-06-02 16:43:39 +04:00
parent dfc1ec3ccf
commit cd05586d51
8 changed files with 48 additions and 15 deletions
+2
View File
@@ -223,6 +223,8 @@ StackItemSection::StackItemSection(
rpl::producer<> StackItemSection::sectionRemoveRequests() const {
if (const auto topic = _memento->topicForRemoveRequests()) {
return rpl::merge(_memento->removeRequests(), topic->destroyed());
} else if (const auto sublist = _memento->sublistForRemoveRequests()) {
return rpl::merge(_memento->removeRequests(), sublist->destroyed());
}
return _memento->removeRequests();
}