always show sender for images

This commit is contained in:
Henry Hiles 2025-11-23 16:01:27 -05:00
commit 9951898598
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View file

@ -250,6 +250,7 @@ class RoomChat extends HookConsumerWidget {
message, message,
headers: room.roomData.client.headers, headers: room.roomData.client.headers,
groupStatus: groupStatus, groupStatus: groupStatus,
alwaysShow: true,
), ),
message: message, message: message,
index: index, index: index,

View file

@ -8,12 +8,14 @@ import "package:nexus/helpers/extension_helper.dart";
class TopWidget extends ConsumerWidget { class TopWidget extends ConsumerWidget {
final Message message; final Message message;
final bool alwaysShow;
final Map<String, String> headers; final Map<String, String> headers;
final MessageGroupStatus? groupStatus; final MessageGroupStatus? groupStatus;
const TopWidget( const TopWidget(
this.message, { this.message, {
required this.headers, required this.headers,
required this.groupStatus, required this.groupStatus,
this.alwaysShow = false,
super.key, super.key,
}); });
@ -96,7 +98,7 @@ class TopWidget extends ConsumerWidget {
), ),
SizedBox(height: 12), SizedBox(height: 12),
], ],
if (groupStatus?.isFirst != false) if (alwaysShow || groupStatus?.isFirst != false)
InkWell( InkWell(
onTap: () => onTap: () =>
showAboutDialog(context: context), // TODO: Show user profile showAboutDialog(context: context), // TODO: Show user profile