always show sender for images
This commit is contained in:
parent
e534b7a8a2
commit
9951898598
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue