bulk invites
Value
- admins just starting a channel would often like to invite a whole list of people to join
- it's annoying to have to invite everyone with seperate commands
- let's make INVITE accommodate multiple phone numbers so they can do it in a single call to INVITE!
Behavior
multiple invites
GIVEN an admin alice on a channel #foo, a user bob with phone number +12223334444, and a user cassie with phone number +14443332222
- WHEN alice issues
INVITE +1(222)333-4444, +1 444 333 2222
(or other variants) - THEN both bob and cassie receive invites (as specified in #99 (closed) and #137 (closed))
single invite
GIVEN the above
- WHEN alice issues
INVITE +1(222)333-4444
- THEN bob receives an invite (as specified in #99 (closed) and #137 (closed))
phone number validation
GIVEN the above
- WHEN alice issues
INVITE foo, +1(222)333-4444
,INVITE foo, +1(222)333-4444
,INVITE +1(222)333-4444 +1(444)333 2222
orINVITE foo
- THEN alice receives an error message and nobody is invited
deduplication
GIVEN the above
- WHEN alice issues
INVITE foo, +1(222)333-4444,+12223334444
- THEN bob receives a single invite (and alice is notified of one invite being sent)
Edited by aguestuser