diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/conversations/ConversationsListHelper.java b/app/src/main/java/org/communiquons/android/comunic/client/data/conversations/ConversationsListHelper.java index 80fd159..92acadd 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/conversations/ConversationsListHelper.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/conversations/ConversationsListHelper.java @@ -119,8 +119,14 @@ public class ConversationsListHelper { //Get the ID of the three first members ArrayList membersToGet = new ArrayList<>(); + int num = 0; for(int ID : members){ membersToGet.add(ID); + + num++; + + if(num > 3) + break; } //Get information about the users