Compare commits

...
Author SHA1 Message Date
06c5411dfc
fix bug flutter bump introduced in mention overlay 2026-07-21 16:28:05 -04:00
f6b5bd4057
bump gomuks 2026-07-21 16:27:53 -04:00
2 changed files with 45 additions and 39 deletions

2
gomuks

@ -1 +1 @@
Subproject commit 3c759ba03a5235deb82cb1559ebc42c36ee0e874
Subproject commit bc0f54a0ad1404afbec9ceb65136ec9eeb9b62c4

View file

@ -73,20 +73,23 @@ class MentionOverlay extends ConsumerWidget {
:final displayName,
:final avatarUrl,
) =>
ListTile(
leading: AvatarOrHash(
avatarUrl,
displayName ??
member.stateKey!.localpart,
),
title: Text(
displayName ??
member.stateKey!.localpart,
),
subtitle: Text(member.stateKey!),
onTap: () => addTag(
id: "[@$displayName](matrix:u/${member.stateKey!.substring(1)})",
name: member.stateKey!.localpart,
Material(
color: Colors.transparent,
child: ListTile(
leading: AvatarOrHash(
avatarUrl,
displayName ??
member.stateKey!.localpart,
),
title: Text(
displayName ??
member.stateKey!.localpart,
),
subtitle: Text(member.stateKey!),
onTap: () => addTag(
id: "[@$displayName](matrix:u/${member.stateKey!.substring(1)})",
name: member.stateKey!.localpart,
),
),
),
_ => SizedBox.shrink(),
@ -113,31 +116,34 @@ class MentionOverlay extends ConsumerWidget {
room.metadata?.canonicalAlias ??
room.metadata?.id ??
"Unknown Room";
return ListTile(
leading: AvatarOrHash(
room.metadata?.avatar,
name,
fallback: Icon(Icons.numbers),
return Material(
color: Colors.transparent,
child: ListTile(
leading: AvatarOrHash(
room.metadata?.avatar,
name,
fallback: Icon(Icons.numbers),
),
title: Text(name),
subtitle: room.metadata?.topic == null
? null
: Text(room.metadata!.topic!, maxLines: 1),
onTap: () {
final vias = ref.watch(
ViaController.provider(room),
);
addTag(
id: "[#$name](matrix:roomid/${room.metadata?.id.substring(1)}$vias)",
name:
(room.metadata?.canonicalAlias ??
room.metadata?.id)
?.substring(1)
.split(":")
.first ??
"",
);
},
),
title: Text(name),
subtitle: room.metadata?.topic == null
? null
: Text(room.metadata!.topic!, maxLines: 1),
onTap: () {
final vias = ref.watch(
ViaController.provider(room),
);
addTag(
id: "[#$name](matrix:roomid/${room.metadata?.id.substring(1)}$vias)",
name:
(room.metadata?.canonicalAlias ??
room.metadata?.id)
?.substring(1)
.split(":")
.first ??
"",
);
},
);
})
.toList(),