浏览代码

Fix issue with missing participants

Mario Danic 6 年之前
父节点
当前提交
1c5c37f9a5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.java

+ 2 - 2
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();