Back to All

load conversation messages

is there a way to load a chat between two users? right now the only available function is
messages.list({
userId: 'user1',
pageSize: 50,
});
which gives us the messages sent to the user. but how do we get a conversation between user1 and user2