fix: visible footnote spacing and visibility.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -147,11 +147,15 @@ class BottomRow extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (isDeleted) {
|
||||
return deletedBottomRowBuilder?.call(
|
||||
context,
|
||||
message,
|
||||
) ??
|
||||
const StreamVisibleFootnote();
|
||||
final deletedBottomRowBuilder = this.deletedBottomRowBuilder;
|
||||
if (deletedBottomRowBuilder != null) {
|
||||
return deletedBottomRowBuilder(context, message);
|
||||
}
|
||||
|
||||
// Only show visible footnote for ownUser.
|
||||
final currentUser = streamChat.currentUser;
|
||||
final isOwnUser = message.user?.id == currentUser?.id;
|
||||
if (isOwnUser) return const StreamVisibleFootnote();
|
||||
}
|
||||
|
||||
final children = <WidgetSpan>[];
|
||||
|
||||
@@ -794,8 +794,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
||||
showUsername ||
|
||||
showTimeStamp ||
|
||||
showInChannel ||
|
||||
showSendingIndicator ||
|
||||
isDeleted;
|
||||
showSendingIndicator;
|
||||
|
||||
/// {@template isPinned}
|
||||
/// Whether [StreamMessageWidget.message] is pinned or not.
|
||||
|
||||
@@ -65,7 +65,6 @@ class _QuotedMessageState extends State<QuotedMessage> {
|
||||
top: 8,
|
||||
bottom: widget.hasNonUrlAttachments ? 8 : 0,
|
||||
),
|
||||
composing: false,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user