require at least 2 admins to create channel
context
- if a channel only has one admin, nobody can re-add the sole admin if their safety number changes, and the channel will thus be orphaned
- also: it is good opsec to be able to kick an admin if something happens to them
- so: we'd like to require 2 admins
- but we left that work unfinished in !528 (merged)
behavior
(stub)
WHEN a user submits a CHANNEL
command followed by one phone number
- THEN no channel will be created
- AND THEN they will receive an error message saying "sorry, at least two admin phone numbers are required to create a channel"
WHEN a user submits a CHANNEL
command followed by at least 2 numbers
- THEN the channel will be created
- AND THEN admins will receive notifications and invites as implemeted in !528 (merged)
implementation notes
- insert a check at the top of
registrar.channel.create
to see if the arrayadmins
has 2 or more elements, if not return aSignalboostStatus
of typeERROR
and a useful error message
Edited by aguestuser