side chats

STUB

Value

  • admins would like to be able to have side conversations with subscribers (so that they can have back and forths with specific people that last longer than just 1 message) without leaking the phone number of either to each other

Behavior

GIVEN alice is an admin on channel [foo] in hotline mode

  • WHEN bob sends the message we need a medic now! to the channel

    • THEN this message will be forwarded to all admins prefixed by a header that says [HOTLINE #1312] (in the language of each admin)
  • WHEN alice sends a message to the channel that says REPLY #1312 where are you?

    • THEN both bob and all admins of the channel will be sent the message where are you?
    • AND the message seen by bob will be prefixed with the header [PRIVATE REPLY FROM ADMINS] (in bob's language)
    • AND the message seen by all other admins will be prefixed with the header [REPLY TO HOTLINE #1312] (in the admin's language)
  • every day, a job will run that deletes all records of hotline message / sender tuples older than one month to preserve user privacy

Implementation questions

  • indexes rollover every 100?
  • how many phone numbers do we need to keep "hot" for this to work?
Edited by aguestuser