Enable long message send as an attachment
This commit is contained in:
parent
4d8fbe95ff
commit
274949b247
1 changed files with 0 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue