fix issue
This commit is contained in:
parent
bdae84a8ab
commit
ad9d2ebb82
3 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import "dart:io";
|
||||
import "package:cli_tools/config.dart";
|
||||
import "package:collection/collection.dart";
|
||||
import "package:enough_mail/enough_mail.dart" as mail;
|
||||
import "package:markdown/markdown.dart";
|
||||
import "package:matrix/matrix.dart";
|
||||
|
@ -71,9 +72,11 @@ void main(List<String> argsRaw) async {
|
|||
|
||||
final registration = container
|
||||
.read(RegistrationController.provider)
|
||||
.firstWhere(
|
||||
.firstWhereOrNull(
|
||||
(account) => account.username == results.namedGroup("username"),
|
||||
);
|
||||
if (registration == null) return;
|
||||
|
||||
final password = results.namedGroup("password")!;
|
||||
final reactionEvent = await event.room.sendReaction(
|
||||
event.eventId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue