From 48c780d15ac298094be342a2292f6743fac80495 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 14 Aug 2014 22:09:03 +0200 Subject: [PATCH] fixed muc pm avatar --- src/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java index ca475cc90..34fea41f8 100644 --- a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -389,8 +389,11 @@ public class MessageAdapter extends ArrayAdapter { viewHolder.contact_picture.setImageBitmap(mBitmapCache.get( contact, getContext())); } else { - viewHolder.contact_picture.setImageBitmap(mBitmapCache.get( - item.getCounterpart(), getContext())); + String name = item.getPresence(); + if (name==null) { + name = item.getCounterpart(); + } + viewHolder.contact_picture.setImageBitmap(mBitmapCache.get(name, getContext())); } viewHolder.contact_picture .setOnClickListener(new OnClickListener() {