fix: Open room after join

pull/855/merge
krille-chan 1 year ago
parent 6cc2c6a578
commit f5c536878a
No known key found for this signature in database

@ -106,15 +106,14 @@ class ChatListItem extends StatelessWidget {
if (room.membership == Membership.leave) {
context.go('/rooms/archive/${room.id}');
return;
}
if (room.membership == Membership.join) {
// Share content into this room
final shareContent = Matrix.of(context).shareContent;
if (shareContent != null) {
final shareFile = shareContent.tryGet<MatrixFile>('file');
if (shareContent.tryGet<String>('msgtype') ==
'chat.fluffy.shared_file' &&
if (shareContent.tryGet<String>('msgtype') == 'chat.fluffy.shared_file' &&
shareFile != null) {
await showDialog(
context: context,
@ -148,7 +147,6 @@ class ChatListItem extends StatelessWidget {
context.go('/rooms/${room.id}');
}
}
Future<void> archiveAction(BuildContext context) async {
{

Loading…
Cancel
Save