chore: re-enable command parsing (#3595)
This commit is contained in:
parent
27546dbb7f
commit
d5daec3e6c
2 changed files with 12 additions and 9 deletions
|
|
@ -46,7 +46,6 @@ import '../../widgets/matrix.dart';
|
|||
import 'package:fluffychat/utils/tor_stub.dart'
|
||||
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
|
||||
|
||||
|
||||
enum PopupMenuAction {
|
||||
settings,
|
||||
invite,
|
||||
|
|
|
|||
|
|
@ -204,14 +204,18 @@ extension EventsRoomExtension on Room {
|
|||
String? messageTag,
|
||||
String? tempEventId,
|
||||
}) {
|
||||
// if (parseCommands) {
|
||||
// return client.parseAndRunCommand(this, message,
|
||||
// inReplyTo: inReplyTo,
|
||||
// editEventId: editEventId,
|
||||
// txid: txid,
|
||||
// threadRootEventId: threadRootEventId,
|
||||
// threadLastEventId: threadLastEventId);
|
||||
// }
|
||||
if (parseCommands) {
|
||||
return client.parseAndRunCommand(
|
||||
this,
|
||||
message,
|
||||
inReplyTo: inReplyTo,
|
||||
editEventId: editEventId,
|
||||
txid: txid,
|
||||
threadRootEventId: threadRootEventId,
|
||||
threadLastEventId: threadLastEventId,
|
||||
);
|
||||
}
|
||||
|
||||
final event = <String, dynamic>{
|
||||
'msgtype': msgtype,
|
||||
'body': message,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue