aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2020-04-11 12:58:45 +0200
committersteckbrief <steckbrief@chefmail.de>2020-04-11 12:58:45 +0200
commit25434a72dcdd9653130950802a8346fd487ac1c5 (patch)
tree13b100470bca7f1451b49a46a518ec70826c77c7 /src
parent659bfb0b8bfacf7397af9f2956dcdb1a39f71971 (diff)
implements FS#271: Remove own Avatar from message display
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
index f67ad887c..9c6cb5ac9 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
@@ -1018,7 +1018,12 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
}
return view;
} else {
- AvatarWorkerTask.loadAvatar(message, viewHolder.contact_picture, R.dimen.avatar);
+ if (message.getStatus() > Message.STATUS_RECEIVED) {
+ view.findViewById(R.id.placeholder).setVisibility(View.GONE);
+ viewHolder.contact_picture.setVisibility(View.GONE);
+ } else {
+ AvatarWorkerTask.loadAvatar(message, viewHolder.contact_picture, R.dimen.avatar);
+ }
}
resetClickListener(viewHolder.message_box, viewHolder.messageBody);