From 63e1d6dab6e69a97f3a4f16f9dc3ac401e28811a Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 12 Jun 2025 19:12:12 +0400 Subject: [PATCH] Fix saved messages sublists updates. --- Telegram/SourceFiles/history/history_item.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 58e747454a..4e93a2bfba 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -3847,6 +3847,11 @@ void HistoryItem::createComponents(CreateConfig &&config) { } } saved->sublistPeerId = config.savedSublistPeer; + if (_history->peer->isSelf()) { + saved->savedMessagesSublist + = _history->owner().savedMessages().sublist( + _history->owner().peer(saved->sublistPeerId)); + } } if (const auto reply = Get()) {