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