最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

next.js - StreamChat: Check if a channel exists with precise members - Stack Overflow

programmeradmin5浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论