Skip to content

Commit 8a86f1f

Browse files
committed
don't refetch conversation parts if list is empty
1 parent 16badb0 commit 8a86f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intercom-java/src/main/java/io/intercom/api/Conversation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ public long getUpdatedAt() {
265265
}
266266

267267
public ConversationPartCollection getConversationPartCollection() {
268-
if (conversationPartCollection == null || conversationPartCollection.getPage().isEmpty()) {
269-
this.conversationPartCollection = find(this.getId()).getConversationPartCollection();
268+
if (conversationPartCollection == null) {
269+
conversationPartCollection = find(this.getId()).getConversationPartCollection();
270270
}
271271

272272
return conversationPartCollection;

0 commit comments

Comments
 (0)