Merge pull request #188 from sachaaaaa/merge_1_21_1

Merge 1.21.1
pull/194/head
sachaaaaa 6 years ago committed by GitHub
commit b95bc6e433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,8 +18,12 @@ function autoUpdateDisabled() {
); );
} }
function checkForUpdates() { async function checkForUpdates() {
autoUpdater.checkForUpdates(); try {
await autoUpdater.checkForUpdates();
} catch (error) {
console.log('checkForUpdates error:', error.stack);
}
} }
let showingDialog = false; let showingDialog = false;

@ -773,9 +773,9 @@
// Look for message in memory first, which would tell us if we could scroll to it // Look for message in memory first, which would tell us if we could scroll to it
const targetMessage = this.model.messageCollection.find(item => { const targetMessage = this.model.messageCollection.find(item => {
const messageAuthor = item.getContact().id; const messageAuthor = item.getContact();
if (author !== messageAuthor) { if (!messageAuthor || author !== messageAuthor.id) {
return false; return false;
} }
if (id !== item.get('sent_at')) { if (id !== item.get('sent_at')) {

@ -25294,13 +25294,20 @@ var origCurve25519 = Internal.curve25519_async;
Internal.startWorker = function(url) { Internal.startWorker = function(url) {
Internal.stopWorker(); // there can be only one Internal.stopWorker(); // there can be only one
Internal.curve25519_async = new Curve25519Worker(url); Internal.curve25519_async = new Curve25519Worker(url);
Internal.Curve.async = Internal.wrapCurve25519(Internal.curve25519_async);
libsignal.Curve.async = Internal.wrapCurve(Internal.Curve.async);
}; };
Internal.stopWorker = function() { Internal.stopWorker = function() {
if (Internal.curve25519_async instanceof Curve25519Worker) { if (Internal.curve25519_async instanceof Curve25519Worker) {
var worker = Internal.curve25519_async.worker; var worker = Internal.curve25519_async.worker;
Internal.curve25519_async = origCurve25519; Internal.curve25519_async = origCurve25519;
Internal.Curve.async = Internal.wrapCurve25519(Internal.curve25519_async);
libsignal.Curve.async = Internal.wrapCurve(Internal.Curve.async);
worker.terminate(); worker.terminate();
} }
}; };
@ -35158,6 +35165,7 @@ Curve25519Worker.prototype = {
}; };
} }
Internal.wrapCurve25519 = wrapCurve25519;
Internal.Curve = wrapCurve25519(Internal.curve25519); Internal.Curve = wrapCurve25519(Internal.curve25519);
Internal.Curve.async = wrapCurve25519(Internal.curve25519_async); Internal.Curve.async = wrapCurve25519(Internal.curve25519_async);
@ -35185,6 +35193,7 @@ Curve25519Worker.prototype = {
}; };
} }
Internal.wrapCurve = wrapCurve;
libsignal.Curve = wrapCurve(Internal.Curve); libsignal.Curve = wrapCurve(Internal.Curve);
libsignal.Curve.async = wrapCurve(Internal.Curve.async); libsignal.Curve.async = wrapCurve(Internal.Curve.async);

@ -109,7 +109,7 @@ Message.prototype = {
const item = new textsecure.protobuf.DataMessage.Preview(); const item = new textsecure.protobuf.DataMessage.Preview();
item.title = preview.title; item.title = preview.title;
item.url = preview.url; item.url = preview.url;
item.image = preview.image; item.image = preview.image || null;
return item; return item;
}); });
} }

@ -370,7 +370,9 @@ function createWindow() {
} }
await requestShutdown(); await requestShutdown();
if (mainWindow) {
mainWindow.readyForShutdown = true; mainWindow.readyForShutdown = true;
}
app.quit(); app.quit();
}); });

@ -3,7 +3,7 @@
"productName": "Loki Messenger", "productName": "Loki Messenger",
"description": "Private messaging from your desktop", "description": "Private messaging from your desktop",
"repository": "https://github.com/sloki-project/loki-messenger.git", "repository": "https://github.com/sloki-project/loki-messenger.git",
"version": "1.21.0", "version": "1.21.1",
"license": "GPL-3.0", "license": "GPL-3.0",
"author": { "author": {
"name": "Open Whisper Systems", "name": "Open Whisper Systems",

Loading…
Cancel
Save