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,
|
authorId: event.authorId,
|
||||||
source: source,
|
source: source,
|
||||||
replyToMessageId: replyId,
|
replyToMessageId: replyId,
|
||||||
|
metadata: metadata,
|
||||||
text: asText.text,
|
text: asText.text,
|
||||||
deliveredAt: config.event.timestamp,
|
deliveredAt: config.event.timestamp,
|
||||||
blurhash: (content["info"] as Map?)?["xyz.amorgan.blurhash"],
|
blurhash: (content["info"] as Map?)?["xyz.amorgan.blurhash"],
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class AvatarOrHash extends ConsumerWidget {
|
||||||
smallSize: 12,
|
smallSize: 12,
|
||||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
borderRadius: BorderRadius.all(Radius.circular((height - 8) / 2.5)),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: height,
|
width: height,
|
||||||
height: height,
|
height: height,
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class TopWidget extends ConsumerWidget {
|
||||||
if (replyMessage == null) return SizedBox.shrink();
|
if (replyMessage == null) return SizedBox.shrink();
|
||||||
|
|
||||||
final smallerText =
|
final smallerText =
|
||||||
message is TextMessage && replyMessage.metadata!["body"] != null
|
message is TextMessage && replyMessage.metadata?["body"] != null
|
||||||
? replyMessage.metadata!["body"].substring(
|
? replyMessage.metadata!["body"].substring(
|
||||||
0,
|
0,
|
||||||
min(
|
min(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue