2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support drafts in monoforum sublists.

This commit is contained in:
John Preston
2025-05-20 20:32:24 +04:00
parent b2c01991a6
commit f65556acb7
30 changed files with 488 additions and 208 deletions

View File

@@ -1802,8 +1802,10 @@ void PeerMenuCreatePoll(
peer->owner().history(peer),
result.options);
action.replyTo = replyTo;
const auto topicRootId = replyTo.topicRootId;
if (const auto local = action.history->localDraft(topicRootId)) {
const auto local = action.history->localDraft(
replyTo.topicRootId,
replyTo.monoforumPeerId);
if (local) {
action.clearDraft = local->textWithTags.text.isEmpty();
} else {
action.clearDraft = false;