fix: Share files
This commit is contained in:
parent
f026976c17
commit
77d5ca4f0a
1 changed files with 4 additions and 2 deletions
|
|
@ -96,13 +96,15 @@ class ChatListItem extends StatelessWidget {
|
|||
// 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') {
|
||||
'chat.fluffy.shared_file' &&
|
||||
shareFile != null) {
|
||||
await showDialog(
|
||||
context: context,
|
||||
useRootNavigator: false,
|
||||
builder: (c) => SendFileDialog(
|
||||
files: shareContent['file'],
|
||||
files: [shareFile],
|
||||
room: room,
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue