xmtp / libxmtp

LibXMTP is a shared library encapsulating the core functionality of the XMTP messaging protocol, such as cryptography, networking, and language bindings.
MIT License
40 stars 18 forks source link

Permissions - Ability to create a group chat that only has two members and cannot have additional members added (Medium) #694

Open nplasterer opened 4 months ago

nplasterer commented 4 months ago

1:1 chats don’t need custom permissions IMO. All 1:1 chats should work the same way.

We should be able to use our existing permissions framework to enable 1:1. We’d just define a default permission set required on all 1:1 chats.

We may want to spend a bit of time making sure we don’t need to upgrade our permission system to support this permission set. Maybe there are some additional fields we can add now, even if they’re unused, to make room for 1:1. For example, an optional list of allowed_members on the ImmutableMetadata to restrict the group to 2 people.

cameronvoell commented 1 week ago

Related PR - https://github.com/xmtp/libxmtp/pull/901