mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
Remove reply from context menu when you can't write
This commit is contained in:
parent
99cb10f5be
commit
c8fa2d8d6e
@ -660,7 +660,8 @@ public final class ConversationReactionOverlay extends FrameLayout {
|
|||||||
items.add(new ActionItem(R.attr.menu_select_icon, getContext().getResources().getString(R.string.conversation_context__menu_select), () -> handleActionItemClicked(Action.SELECT),
|
items.add(new ActionItem(R.attr.menu_select_icon, getContext().getResources().getString(R.string.conversation_context__menu_select), () -> handleActionItemClicked(Action.SELECT),
|
||||||
getContext().getResources().getString(R.string.AccessibilityId_select)));
|
getContext().getResources().getString(R.string.AccessibilityId_select)));
|
||||||
// Reply
|
// Reply
|
||||||
if (!message.isPending() && !message.isFailed()) {
|
boolean canWrite = openGroup == null || openGroup.getCanWrite();
|
||||||
|
if (canWrite && !message.isPending() && !message.isFailed()) {
|
||||||
items.add(
|
items.add(
|
||||||
new ActionItem(R.attr.menu_reply_icon, getContext().getResources().getString(R.string.conversation_context__menu_reply), () -> handleActionItemClicked(Action.REPLY),
|
new ActionItem(R.attr.menu_reply_icon, getContext().getResources().getString(R.string.conversation_context__menu_reply), () -> handleActionItemClicked(Action.REPLY),
|
||||||
getContext().getResources().getString(R.string.AccessibilityId_reply_message))
|
getContext().getResources().getString(R.string.AccessibilityId_reply_message))
|
||||||
|
Loading…
Reference in New Issue
Block a user