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
47 stars 20 forks source link

Feature request: Ability to bulk update admin list #1351

Open neekolas opened 4 days ago

neekolas commented 4 days ago

Is your feature request related to a problem?

Sometimes you want to set many members to be admins - maybe the whole group. The current update_admin_list method only allows you to do this one at a time, leading to a large number of commits and async actions for something that could be handled in a single call.

Describe the solution to the problem

Create a bulk_update_admin_list function that takes an array. Maybe deprecate the current version and make everyone use it. That would let us reclaim the name update_admin_list.

Same for super-admin list obviously.

Describe the uses cases for the feature

Making everyone in the group an admin

Additional details

No response

neekolas commented 4 days ago

If we really wanted to get fancy we could include it as an option when adding the member and have the add + the update to the admin list all happen in a single commit.