mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Hide useless menu options
This commit is contained in:
parent
e02ab259b6
commit
f70717a987
@ -70,7 +70,7 @@ class ConversationMessageTile extends StatelessWidget {
|
|||||||
user: userInfo,
|
user: userInfo,
|
||||||
width: 35.0,
|
width: 35.0,
|
||||||
),
|
),
|
||||||
itemBuilder: (c) => [
|
itemBuilder: (c) => <PopupMenuItem<_MenuChoices>>[
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
enabled: (message.message?.content ?? "") != "",
|
enabled: (message.message?.content ?? "") != "",
|
||||||
value: _MenuChoices.COPY_MESSAGE,
|
value: _MenuChoices.COPY_MESSAGE,
|
||||||
@ -101,7 +101,7 @@ class ConversationMessageTile extends StatelessWidget {
|
|||||||
value: _MenuChoices.DELETE,
|
value: _MenuChoices.DELETE,
|
||||||
child: Text(tr("Delete")),
|
child: Text(tr("Delete")),
|
||||||
),
|
),
|
||||||
],
|
]..removeWhere((element) => !element.enabled),
|
||||||
onSelected: _menuOptionSelected,
|
onSelected: _menuOptionSelected,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user