2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support nice empty topic view.

This commit is contained in:
John Preston
2022-10-25 20:40:26 +04:00
parent 99564d3d44
commit c8ed8e0e5f
18 changed files with 418 additions and 237 deletions

View File

@@ -2016,6 +2016,10 @@ void ApiWrap::saveCurrentDraftToCloud() {
for (const auto &controller : _session->windows()) {
controller->materializeLocalDrafts();
if (const auto thread = controller->activeChatCurrent().thread()) {
const auto topic = thread->asTopic();
if (topic && topic->creating()) {
continue;
}
const auto history = thread->owningHistory();
_session->local().writeDrafts(history);