keep message drafts on room switches

this is for you courge
This commit is contained in:
Henry Hiles 2026-11-05 20:44:13 -05:00
commit e899bb3929
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -95,10 +95,14 @@ class BotCommandDraftController(final ComposerParams composer)
}
}
void set(BotCommandDraft? draft) => state = draft;
void clear() => state = null;
static final provider = NotifierProvider.autoDispose
.family<BotCommandDraftController, BotCommandDraft?, ComposerParams>(
BotCommandDraftController.new,
);
static final provider =
NotifierProvider.family<
BotCommandDraftController,
BotCommandDraft?,
ComposerParams
>(BotCommandDraftController.new);
}