I am trying to check if two users have a conversation. I found this:
const existingChannels = await streamServerClient.queryChannels({
type: "messaging",
members: { $in: [senderId, receiverId] },
});
But apparently, this returns all channels where EITHER of those users is a part of and not channels that have EXACTLY those users. In other words, the conversation between those two users.
Any help?