parent
41bdb04b72
commit
19363baa8d
1 changed files with 18 additions and 16 deletions
|
|
@ -19,23 +19,25 @@ class const JoinDialog(final WidgetRef ref, {super.key}) extends HookWidget {
|
||||||
|
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => switch (ref.watch(
|
builder: (context) => Consumer(
|
||||||
RoomSummaryController.provider(
|
builder: (context, ref, _) => switch (ref.watch(
|
||||||
.new(
|
RoomSummaryController.provider(
|
||||||
roomIdOrAlias: roomIdOrAlias,
|
.new(
|
||||||
via: linkInfo?.via ?? const IList.empty(),
|
roomIdOrAlias: roomIdOrAlias,
|
||||||
|
via: linkInfo?.via ?? const IList.empty(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
)) {
|
||||||
)) {
|
AsyncData(:final value) => RoomSummaryDialog(
|
||||||
AsyncData(:final value) => RoomSummaryDialog(
|
value,
|
||||||
value,
|
via: linkInfo?.via,
|
||||||
via: linkInfo?.via,
|
),
|
||||||
),
|
AsyncError _ || AsyncLoading _ => RoomSummaryDialog(
|
||||||
AsyncError _ || AsyncLoading _ => RoomSummaryDialog(
|
.new(roomId: roomIdOrAlias),
|
||||||
.new(roomId: roomAlias.text),
|
via: linkInfo?.via,
|
||||||
via: linkInfo?.via,
|
),
|
||||||
),
|
},
|
||||||
},
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue