[#277] fix bug where attachments were stripped from hotline msgs
- SYMPTOM: when users send pictures in a hotline message, admins don't see them
- CAUSE:
relayHotlineMessage
was implemented by finishing with a call tonotify
(b/c that's how other functions that send messages to all admins work), butnotify
assumes it is only given a recipient and a messageBody string (b/c most of the time it is!). thus to conform withnotify
's signature, we strip out the rest of the fields of theSignaldOutgoingMessage
returned fromaddHeaders
and in so doing, drop the attachment from message - FIX: don't use
notify
! just callsignal.sendMessage
Closes #277 (closed)
Edited by aguestuser