fix issue

This commit is contained in:
Henry Hiles 2025-10-03 13:30:12 -04:00
commit ad9d2ebb82
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View file

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

View file

@ -210,7 +210,7 @@ packages:
source: hosted
version: "4.10.1"
collection:
dependency: transitive
dependency: "direct main"
description:
name: collection
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"

View file

@ -22,6 +22,7 @@ dependencies:
markdown: ^7.3.0
matrix: ^1.1.0
sqflite_common_ffi: ^2.3.6
collection: ^1.19.1
dev_dependencies:
build_runner: ^2.4.6