fix: fix contextMenu visibility condition.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -880,7 +880,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
|||||||
|
|
||||||
return ConditionalParentBuilder(
|
return ConditionalParentBuilder(
|
||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
if (!widget.message.isDeleted) {
|
if (!widget.message.state.isDeleted) {
|
||||||
return ContextMenuArea(
|
return ContextMenuArea(
|
||||||
verticalPadding: 0,
|
verticalPadding: 0,
|
||||||
builder: (context) => _buildContextMenu(),
|
builder: (context) => _buildContextMenu(),
|
||||||
@@ -902,7 +902,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
|
|||||||
mobile: (context, child) {
|
mobile: (context, child) {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () => widget.onMessageTap!(widget.message),
|
onTap: () => widget.onMessageTap!(widget.message),
|
||||||
onLongPress: widget.message.isDeleted && !isFailedState
|
onLongPress: !widget.message.state.isDeleted
|
||||||
? null
|
? null
|
||||||
: () => onLongPress(context),
|
: () => onLongPress(context),
|
||||||
child: child,
|
child: child,
|
||||||
|
|||||||
Reference in New Issue
Block a user