chore: Follow up share page

This commit is contained in:
krille-chan 2024-12-06 17:14:27 +01:00
parent d25bfe3f90
commit 3faace9952
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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);
}