feat: Implement threads

This commit is contained in:
krille-chan 2025-11-04 21:08:45 +01:00
commit 380625327a
No known key found for this signature in database
7 changed files with 166 additions and 21 deletions

View file

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