forked from Henry-Hiles/nexus
more rounded avatars, fix metadata error
This commit is contained in:
parent
163facca7e
commit
0db667554f
3 changed files with 3 additions and 2 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue