feat: Implement threads
This commit is contained in:
parent
b5e59d9bb9
commit
380625327a
7 changed files with 166 additions and 21 deletions
|
|
@ -20,11 +20,14 @@ class SendFileDialog extends StatefulWidget {
|
|||
final Room room;
|
||||
final List<XFile> files;
|
||||
final BuildContext outerContext;
|
||||
final String? threadLastEventId, threadRootEventId;
|
||||
|
||||
const SendFileDialog({
|
||||
required this.room,
|
||||
required this.files,
|
||||
required this.outerContext,
|
||||
required this.threadLastEventId,
|
||||
required this.threadRootEventId,
|
||||
super.key,
|
||||
});
|
||||
|
||||
|
|
@ -108,6 +111,8 @@ class SendFileDialogState extends State<SendFileDialog> {
|
|||
thumbnail: thumbnail,
|
||||
shrinkImageMaxDimension: compress ? 1600 : null,
|
||||
extraContent: label.isEmpty ? null : {'body': label},
|
||||
threadRootEventId: widget.threadRootEventId,
|
||||
threadLastEventId: widget.threadLastEventId,
|
||||
);
|
||||
} on MatrixException catch (e) {
|
||||
final retryAfterMs = e.retryAfterMs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue