mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-15 12:10:32 +00:00
make update messages not selectable
This commit is contained in:
@@ -1029,6 +1029,7 @@ public class ConversationFragment extends Fragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(MessageRecord messageRecord) {
|
public void onItemClick(MessageRecord messageRecord) {
|
||||||
|
if (messageRecord.isUpdate()) return;
|
||||||
if (actionMode != null) {
|
if (actionMode != null) {
|
||||||
((ConversationAdapter) list.getAdapter()).toggleSelection(messageRecord);
|
((ConversationAdapter) list.getAdapter()).toggleSelection(messageRecord);
|
||||||
list.getAdapter().notifyDataSetChanged();
|
list.getAdapter().notifyDataSetChanged();
|
||||||
@@ -1044,6 +1045,7 @@ public class ConversationFragment extends Fragment
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onItemLongClick(MessageRecord messageRecord) {
|
public void onItemLongClick(MessageRecord messageRecord) {
|
||||||
|
if (messageRecord.isUpdate()) return;
|
||||||
if (actionMode == null) {
|
if (actionMode == null) {
|
||||||
((ConversationAdapter) list.getAdapter()).toggleSelection(messageRecord);
|
((ConversationAdapter) list.getAdapter()).toggleSelection(messageRecord);
|
||||||
list.getAdapter().notifyDataSetChanged();
|
list.getAdapter().notifyDataSetChanged();
|
||||||
|
Reference in New Issue
Block a user