add sharing support

needs more testing
This commit is contained in:
Henry Hiles 2026-11-25 16:57:33 -05:00
commit 78c6b2ef46
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -24,6 +24,10 @@ class const ComposerDraft({
final PollStart? poll,
final LocationMessageContent? location,
// Bumped when the text is replaced from outside the composer, so that it
// rebuilds its text field from the draft
final int textReplacements = 0,
// The draft from before an edit, restored once it is sent or cancelled
final ({ComposerDraft draft, BotCommandDraft? botCommand})? beforeEdit,
}) with _$ComposerDraft {