diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java index dc8385a..6355cf9 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/ConversationMessageAdapter.java @@ -119,15 +119,7 @@ public class ConversationMessageAdapter extends RecyclerView.Adapter { @Override public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { - switch (viewHolder.getItemViewType()){ - case VIEW_TYPE_MESSAGE_SENT: - ((SentMessageHolder) viewHolder).bind(position); - break; - - case VIEW_TYPE_MESSAGE_RECEIVED: - ((ReceivedMessageHolder) viewHolder).bind(position); - break; - } + ((BaseMessageHolder) viewHolder).bind(position); } /**