GetStream / stream-chat-js

JS / Browser Client - Build Chat with GetStream.io
https://getstream.io/chat/
Other
177 stars 75 forks source link

How to Implement a Friendship System in StreamChat with Channel Control by Friendships #1280

Closed LongJohnSilver1504 closed 4 months ago

LongJohnSilver1504 commented 4 months ago

Hello, I am working on an application that uses StreamChat, and I need to implement a functionality where users can only chat with other users who are their friends. Friendship Dynamics: Users should be able to add and remove friends. Access Restriction: Users should only see and be able to start chats with their friends. Channel Creation: Chat channels should be created between users who are friends as soon as the friendship is established.

MartinCupela commented 4 months ago

Hey @LongJohnSilver1504 the GH Issues section is designed for questions related to the features or bugs related to the SDK. You are asking about how to implement the business logic of your app. You will probably want to learn how to construct queries (users, channels, etc.). Please take a look at the low-level client docs to answer these questions.