UX Bug: admin language preferences overriden by subscriber response
Bug symptoms
For subscriber responses in bilingual settings:
- given: a subscriber has language set to spanish but admin has language set to spanish
- when: the subscriber sends a response
- then: the admin sees [RESPUESTA DEL SUSCRIPTOR] at top of message instead of [SUBSCRIBER RESPONSE]
- ie: the subscriber language setting overrides the admin language setting
Desired Behavior
GIVEN a channel in hotline mode with admins alice and bob who have language preferences spanish and english (respectively) and a user cassie with language preferences set to spanish
- WHEN cassie submits a hotline message saying "hi there"
- THEN alice should receive a message
[RESPUESTA DEL SUSCRIPTOR:]\n hi there
- AND THEN bob should recive a message
[SUBSCRIBER RESPONSE:]\n hi there
Implementation
- subscriber responses (aka "hotline messages") should use
signal.send
instead ofsignal.broadcast
when sending to all admins so that they can set the header for the message individually according to the language preferences of each admin - NOTE: we should probably do this for admin notifications as well if we don't already