chore: Follow up share page
This commit is contained in:
parent
d25bfe3f90
commit
3faace9952
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import 'dart:async';
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
@ -389,7 +388,6 @@ class ChatListController extends State<ChatList>
|
|||
builder: (context) => ShareScaffoldDialog(
|
||||
items: files.map(
|
||||
(file) {
|
||||
inspect(file);
|
||||
if ({
|
||||
SharedMediaType.text,
|
||||
SharedMediaType.url,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,9 @@ class _ShareScaffoldDialogState extends State<ShareScaffoldDialog> {
|
|||
'Started forward action before room was selected. This should never happen.',
|
||||
);
|
||||
}
|
||||
context.pop();
|
||||
while (context.canPop()) {
|
||||
context.pop();
|
||||
}
|
||||
context.go('/rooms/$roomId', extra: widget.items);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue