mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Disable deleting and replying to messages in Loki public chat
This commit is contained in:
parent
2249bf1edb
commit
2c3e67e062
@ -59,7 +59,6 @@ import com.annimon.stream.Stream;
|
||||
import org.thoughtcrime.securesms.ApplicationContext;
|
||||
import org.thoughtcrime.securesms.MessageDetailsActivity;
|
||||
import org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity;
|
||||
import network.loki.messenger.R;
|
||||
import org.thoughtcrime.securesms.ShareActivity;
|
||||
import org.thoughtcrime.securesms.attachments.Attachment;
|
||||
import org.thoughtcrime.securesms.components.ConversationTypingView;
|
||||
@ -113,6 +112,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
|
||||
import network.loki.messenger.R;
|
||||
|
||||
@SuppressLint("StaticFieldLeak")
|
||||
public class ConversationFragment extends Fragment
|
||||
implements LoaderManager.LoaderCallbacks<Cursor>
|
||||
@ -397,6 +398,13 @@ public class ConversationFragment extends Fragment
|
||||
messageRecord.isSecure());
|
||||
}
|
||||
menu.findItem(R.id.menu_context_copy).setVisible(!actionMessage && hasText);
|
||||
|
||||
boolean isLokiPublicChat = recipient.isGroupRecipient(); // TODO: Figure out a better way of determining this
|
||||
|
||||
if (isLokiPublicChat) {
|
||||
menu.findItem(R.id.menu_context_reply).setVisible(false);
|
||||
menu.findItem(R.id.menu_context_delete_message).setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
private ConversationAdapter getListAdapter() {
|
||||
|
Loading…
Reference in New Issue
Block a user