admin管理员组

文章数量:1396820

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?

本文标签: nextjsStreamChat Check if a channel exists with precise membersStack Overflow