We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6e8b16 + 82b885d commit 9019dfdCopy full SHA for 9019dfd
lib/src/utils/commands_extension.dart
@@ -17,6 +17,7 @@
17
*/
18
19
import 'dart:async';
20
+import 'dart:convert';
21
22
import 'package:matrix/matrix.dart';
23
@@ -276,6 +277,14 @@ extension CommandsClientExtension on Client {
276
277
txid: args.txid,
278
);
279
});
280
+ addCommand('sendRaw', (args) async {
281
+ await args.room.sendEvent(
282
+ jsonDecode(args.msg),
283
+ inReplyTo: args.inReplyTo,
284
+ txid: args.txid,
285
+ );
286
+ return null;
287
+ });
288
}
289
290
0 commit comments