Browse Source

Fix a typo in getting an object type

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 years ago
parent
commit
013e60af1b

+ 1 - 1
app/src/main/java/com/nextcloud/talk/adapters/items/ConversationItem.java

@@ -213,7 +213,7 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
 
         boolean shouldLoadAvatar = true;
         String objectType;
-        if (TextUtils.isEmpty(objectType = conversation.getObjectType())) {
+        if (!TextUtils.isEmpty(objectType = conversation.getObjectType())) {
             switch (objectType) {
                 case "share:password":
                     shouldLoadAvatar = false;