Fix chat list view

This commit is contained in:
Erwan Croze 2018-08-17 11:24:15 +02:00
parent 30a893fc15
commit 5e312aeb60
2 changed files with 3 additions and 2 deletions

View file

@ -102,7 +102,7 @@
android:id="@+id/separator_text"
android:layout_width="match_parent"
android:layout_height="23.3dp"
android:layout_marginTop="15dp"
android:layout_marginTop="20dp"
android:background="@color/colorN"
android:gravity="center_vertical|center_horizontal"
android:text="appel sécurisé"

View file

@ -198,7 +198,8 @@ public class ChatRoomsAdapter extends ListSelectionAdapter {
} else {
holder.messageStatus.setImageResource(R.drawable.message_undelivered);
}
} else {
}
if (!chatRoom.hasCapability(ChatRoomCapabilities.OneToOne.toInt())){
Address lastMessageSenderAddress = lastMessage.getFromAddress();
LinphoneContact contact = ContactsManager.getInstance().findContactFromAddress(lastMessageSenderAddress);
holder.lastMessageSenderView.setVisibility(View.VISIBLE);