keep message drafts on room switches
this is for you courge
This commit is contained in:
parent
7f7bdbf525
commit
e899bb3929
1 changed files with 357 additions and 194 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue