Enable long message send as an attachment

This commit is contained in:
Scott Nonnenberg 2019-03-25 10:19:46 -07:00
parent 4d8fbe95ff
commit 274949b247

View file

@ -1857,17 +1857,9 @@
});
// Receive will be enabled before we enable send
Whisper.Message.LONG_MESSAGE_SEND_DISABLED = true;
Whisper.Message.LONG_MESSAGE_CONTENT_TYPE = 'text/x-signal-plain';
Whisper.Message.getLongMessageAttachment = ({ body, attachments, now }) => {
if (Whisper.Message.LONG_MESSAGE_SEND_DISABLED) {
return {
body,
attachments,
};
}
if (body.length <= 2048) {
return {
body,