|
|
@ -96,13 +96,15 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
// Share content into this room
|
|
|
|
// Share content into this room
|
|
|
|
final shareContent = Matrix.of(context).shareContent;
|
|
|
|
final shareContent = Matrix.of(context).shareContent;
|
|
|
|
if (shareContent != null) {
|
|
|
|
if (shareContent != null) {
|
|
|
|
|
|
|
|
final shareFile = shareContent.tryGet<MatrixFile>('file');
|
|
|
|
if (shareContent.tryGet<String>('msgtype') ==
|
|
|
|
if (shareContent.tryGet<String>('msgtype') ==
|
|
|
|
'chat.fluffy.shared_file') {
|
|
|
|
'chat.fluffy.shared_file' &&
|
|
|
|
|
|
|
|
shareFile != null) {
|
|
|
|
await showDialog(
|
|
|
|
await showDialog(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
useRootNavigator: false,
|
|
|
|
useRootNavigator: false,
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
builder: (c) => SendFileDialog(
|
|
|
|
files: shareContent['file'],
|
|
|
|
files: [shareFile],
|
|
|
|
room: room,
|
|
|
|
room: room,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|