more rounded avatars, fix metadata error

This commit is contained in:
Henry Hiles 2026-03-13 19:23:51 -04:00
commit 0db667554f
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -133,6 +133,7 @@ class MessageController extends AsyncNotifier<Message?> {
authorId: event.authorId,
source: source,
replyToMessageId: replyId,
metadata: metadata,
text: asText.text,
deliveredAt: config.event.timestamp,
blurhash: (content["info"] as Map?)?["xyz.amorgan.blurhash"],

View file

@ -40,7 +40,7 @@ class AvatarOrHash extends ConsumerWidget {
smallSize: 12,
backgroundColor: Theme.of(context).colorScheme.primary,
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(4)),
borderRadius: BorderRadius.all(Radius.circular((height - 8) / 2.5)),
child: SizedBox(
width: height,
height: height,

View file

@ -27,7 +27,7 @@ class TopWidget extends ConsumerWidget {
if (replyMessage == null) return SizedBox.shrink();
final smallerText =
message is TextMessage && replyMessage.metadata!["body"] != null
message is TextMessage && replyMessage.metadata?["body"] != null
? replyMessage.metadata!["body"].substring(
0,
min(