From 1c5c37f9a57c1629c1be7a5fe5cb2c0919be1e71 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 30 Nov 2018 11:10:19 +0100 Subject: [PATCH] Fix issue with missing participants --- .../talk/controllers/ConversationInfoController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.java b/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.java index e8ccc3378..3a129e4db 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.java @@ -187,7 +187,7 @@ public class ConversationInfoController extends BaseController { participant = participants.get(i); userItem = new UserItem(participant, conversationUser, null); userItem.setEnabled(!participant.getSessionId().equals("0")); - if (!TextUtils.isEmpty(participant.getUserId()) && !participant.getUserId().equals(conversationUser.getUserId())) { + if (!TextUtils.isEmpty(participant.getUserId()) && participant.getUserId().equals(conversationUser.getUserId())) { ownUserItem = userItem; } else { recyclerViewItems.add(userItem); @@ -196,7 +196,7 @@ public class ConversationInfoController extends BaseController { if (ownUserItem != null) { - recyclerViewItems.add(ownUserItem); + recyclerViewItems.add(0, ownUserItem); } setupAdapter();