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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user