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