fix: Removed unnecessary check
This commit is contained in:
@@ -694,8 +694,6 @@ class _MessageWidgetState extends State<MessageWidget> {
|
||||
|
||||
void _showMessageActionModalBottomSheet(BuildContext context) {
|
||||
final channel = StreamChannel.of(context).channel;
|
||||
final isMyMessage =
|
||||
widget.message.user.id == StreamChat.of(context).user.id;
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
@@ -731,7 +729,7 @@ class _MessageWidgetState extends State<MessageWidget> {
|
||||
widget.onReplyTap != null,
|
||||
showThreadReply:
|
||||
widget.showThreadReplyIndicator && widget.onThreadTap != null,
|
||||
showFlagButton: widget.showFlagButton && !isMyMessage,
|
||||
showFlagButton: widget.showFlagButton,
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user