Fix bug introduced by rebase
This commit is contained in:
parent
778fb9de6c
commit
e49c2b14ed
|
@ -417,11 +417,10 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
||||||
if (contact != null) {
|
if (contact != null) {
|
||||||
viewHolder.contact_picture.setImageBitmap(activity.avatarService().get(contact, activity.getPixel(48)));
|
viewHolder.contact_picture.setImageBitmap(activity.avatarService().get(contact, activity.getPixel(48)));
|
||||||
} else if (item.getConversation().getMode() == Conversation.MODE_MULTI) {
|
} else if (item.getConversation().getMode() == Conversation.MODE_MULTI) {
|
||||||
String name = item.getPresence();
|
final Jid name = item.getPresence() != null ? item.getPresence() : item.getCounterpart();
|
||||||
if (name == null) {
|
viewHolder.contact_picture.setImageBitmap(activity.avatarService().get(
|
||||||
name = item.getCounterpart();
|
name.isBareJid() ? name.toString() : name.getResourcepart(),
|
||||||
}
|
activity.getPixel(48)));
|
||||||
viewHolder.contact_picture.setImageBitmap(activity.avatarService().get(name, activity.getPixel(48)));
|
|
||||||
}
|
}
|
||||||
} else if (type == SENT) {
|
} else if (type == SENT) {
|
||||||
viewHolder.contact_picture.setImageBitmap(activity.avatarService().get(item.getConversation().getAccount(), activity.getPixel(48)));
|
viewHolder.contact_picture.setImageBitmap(activity.avatarService().get(item.getConversation().getAccount(), activity.getPixel(48)));
|
||||||
|
|
Loading…
Reference in a new issue