1
0
Fork 0
forked from Nexus/nexus

Allow sending reactions

(but not redacting them yet)
This commit is contained in:
Henry Hiles 2026-04-12 14:11:18 -04:00
commit 1dcf3018a2
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
6 changed files with 129 additions and 60 deletions

View file

@ -0,0 +1,16 @@
import "package:freezed_annotation/freezed_annotation.dart";
part "send_event_request.freezed.dart";
part "send_event_request.g.dart";
@freezed
abstract class SendEventRequest with _$SendEventRequest {
const factory SendEventRequest({
required String roomId,
required String type,
required Map<String, dynamic> content,
@Default(false) bool disableEncryption,
}) = _SendEventRequest;
factory SendEventRequest.fromJson(Map<String, Object?> json) =>
_$SendEventRequestFromJson(json);
}