forked from Nexus/nexus
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
|
|
@ -29,7 +29,6 @@ final class const RoomChat({
|
|||
}) extends HookConsumerWidget {
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final composer = ChatComposer.use();
|
||||
final pendingJump = ref.read(JumpRequestController.provider);
|
||||
final contextualEvent = useState<int?>(switch (pendingJump) {
|
||||
// Threaded events open their thread instead, leaving the timeline
|
||||
|
|
@ -76,6 +75,7 @@ final class const RoomChat({
|
|||
}
|
||||
|
||||
final roomId = this.roomId!;
|
||||
final composer = ChatComposer.use(ref, (roomId: roomId, threadRoot: null));
|
||||
|
||||
final jumpRowId = ref.watch(
|
||||
JumpRequestController.provider.select(
|
||||
|
|
|
|||
Loading…
Reference in a new issue