Restrict Further Sharing of Shared Chats in Chat API
Description: Currently, the chat-sharing feature permits secondary sharing, where users with whom a chat is shared (e.g., User B) can share it further with others (e.g., User C). This creates potential privacy and control concerns, as the original chat creator may not intend for additional sharing.
Proposed Solution:
- Implement restrictions within the Chat API that prevent secondary users from sharing the chat further.
- Only the original creator (User A) should retain the permission to share access.
Tasks:
- [ ] Update the chat-sharing logic to restrict further sharing permissions to only the chat creator.
- [ ] Add checks within the API to verify user permissions before allowing share actions.
- [ ] Test the sharing restrictions to confirm expected behaviour.
Acceptance Criteria:
- Only the original creator can share a chat.
- Secondary users (those with whom a chat is shared) are restricted from sharing the chat further.
could you assign this to me?
Hey sure @malikrohail feel free to pick this up.
on it, could you pls share repo guidelines for the pull request?
@malikrohail I dont think we are enforcing a lot yet. Just ensure you follow semantic titles and add comments in code & description in pull request with curl screenshots / api call screenshots as proof of functionality.
Hi @malikrohail let us know if you need any help
@dhirenmathur should this not be closed too?
Is this issue still open