()
| 56 | } |
| 57 | |
| 58 | function onUpdateClick() { |
| 59 | if (channel && permissions?.accountId) { |
| 60 | api |
| 61 | .updateChannelMembers({ |
| 62 | accountId: permissions.accountId, |
| 63 | channelId: channel.id, |
| 64 | usersId: users.map((u) => u.id), |
| 65 | }) |
| 66 | .then(() => { |
| 67 | close(); |
| 68 | }) |
| 69 | .catch((e) => { |
| 70 | Toast.info('Something went wrong'); |
| 71 | }); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | return ( |
| 76 | <Modal open={open} close={close} size="md"> |
no test coverage detected