mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +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,
|
||||
width: 35.0,
|
||||
),
|
||||
itemBuilder: (c) => [
|
||||
itemBuilder: (c) => <PopupMenuItem<_MenuChoices>>[
|
||||
PopupMenuItem(
|
||||
enabled: (message.message?.content ?? "") != "",
|
||||
value: _MenuChoices.COPY_MESSAGE,
|
||||
@ -101,7 +101,7 @@ class ConversationMessageTile extends StatelessWidget {
|
||||
value: _MenuChoices.DELETE,
|
||||
child: Text(tr("Delete")),
|
||||
),
|
||||
],
|
||||
]..removeWhere((element) => !element.enabled),
|
||||
onSelected: _menuOptionSelected,
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user