Skip to content

Commit a9b8edc

Browse files
authored
Merge pull request #112 from intercom/Ed-dynamicRetrieveParts
Ed: Dynamically retrieve the parts for a conversation if not present
2 parents 4e30766 + 160ca16 commit a9b8edc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

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

267267
public ConversationPartCollection getConversationPartCollection() {
268+
if (conversationPartCollection == null || conversationPartCollection.getPage().isEmpty()) {
269+
this.conversationPartCollection = find(this.getId()).getConversationPartCollection();
270+
}
271+
268272
return conversationPartCollection;
269273
}
270274

0 commit comments

Comments
 (0)