Skip to content

Commit 6c4ca83

Browse files
committed
Another adjustment for how the API delivers Conferences
1 parent f45b929 commit 6c4ca83

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • library/src/main/java/com/proxerme/library/connection/messenger/entity

library/src/main/java/com/proxerme/library/connection/messenger/entity/Conference.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ public Conference(@NonNull String id, @NonNull String topic, @NonNull String cus
8787
this.time = time;
8888
this.unreadMessageAmount = unreadMessageAmount;
8989
this.lastReadMessageId = lastReadMessageId;
90-
this.image = imageType + IMAGE_DELIMITER + imageId;
90+
91+
if ((imageType == null || imageType.isEmpty()) && (imageId == null || imageId.isEmpty())) {
92+
this.image = EMPTY_RESULT;
93+
} else {
94+
this.image = imageType + IMAGE_DELIMITER + imageId;
95+
}
9196
}
9297

9398
protected Conference(Parcel in) {

0 commit comments

Comments
 (0)