Created
July 2, 2019 04:24
-
-
Save chibenwa/cfe2e669fa0f64229de1028f6f449c53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private List<MessageId> resolveMessagesIds(GetMessagesRequest getMessagesRequest, ExecutionContext executionContext) { | |
if (getMessagesRequest.getIdsBackReferencesPath().isPresent()) { | |
BackReferencesPath path = getMessagesRequest.getIdsBackReferencesPath().get(); | |
return executionContext.retreiveBackReferences(path, MessageId.class); | |
} | |
return getMessagesRequest.getIds(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment