From cd3570c114b9a9aa16abd8655a80d22a1f5e564e Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 31 Dec 2017 17:15:49 +0100 Subject: [PATCH] Fixed bug --- .../client/data/conversations/ConversationsListHelper.java | 6 ++++++ 1 file changed, 6 insertions(+) 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