Show contact photo in outbound messages

pull/147/head
M66B 7 years ago
parent c3de24c60f
commit e67ca3b6da

@ -410,10 +410,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean outgoing = (viewType != ViewType.THREAD && EntityFolder.isOutgoing(message.folderType)); boolean outgoing = (viewType != ViewType.THREAD && EntityFolder.isOutgoing(message.folderType));
if (!outgoing && (avatars || identicons)) { if (avatars || identicons) {
Bundle aargs = new Bundle(); Bundle aargs = new Bundle();
aargs.putLong("id", message.id); aargs.putLong("id", message.id);
aargs.putSerializable("addresses", message.from); aargs.putSerializable("addresses", outgoing ? message.to : message.from);
new SimpleTask<ContactInfo>() { new SimpleTask<ContactInfo>() {
@Override @Override

Loading…
Cancel
Save