mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
New websocket protocol
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
},
|
||||
|
||||
sendMessage: function(message, attachments) {
|
||||
encodeAttachments(attachments).then(function(base64_attachments) {
|
||||
return encodeAttachments(attachments).then(function(base64_attachments) {
|
||||
var timestamp = Date.now();
|
||||
this.messages().add({ type: 'outgoing',
|
||||
body: message,
|
||||
@@ -155,7 +155,7 @@
|
||||
|
||||
addIncomingMessage: function(decrypted) {
|
||||
var thread = Whisper.Threads.findOrCreateForIncomingMessage(decrypted);
|
||||
thread.receiveMessage(decrypted);
|
||||
return thread.receiveMessage(decrypted);
|
||||
}
|
||||
}))();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user