Fix warnings

This commit is contained in:
Henry Hiles 2026-01-06 13:27:11 -05:00
commit e8a8bb3b4f
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,4 @@
import "package:collection/collection.dart";
import "package:flutter/foundation.dart";
import "package:flutter_chat_core/flutter_chat_core.dart";
import "package:matrix/matrix.dart";

View file

@ -254,8 +254,10 @@ class RoomChat extends HookConsumerWidget {
),
(m) {
// If it's already an <a> tag, leave it unchanged
if (m.group(1) != null)
if (m.group(1) !=
null) {
return m.group(1)!;
}
// Otherwise, wrap the bare URL
final url = m.group(2)!;