Merge pull request #1596 from Bilb/fix-link-device

Fix link device and bump to v1.5.6
pull/1597/head
Audric Ackermann 4 years ago committed by GitHub
commit fc442e12b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -756,8 +756,9 @@
messageReceiver.addEventListener('sent', window.DataMessageReceiver.handleMessageEvent); messageReceiver.addEventListener('sent', window.DataMessageReceiver.handleMessageEvent);
messageReceiver.addEventListener('reconnect', onReconnect); messageReceiver.addEventListener('reconnect', onReconnect);
messageReceiver.addEventListener('configuration', onConfiguration); messageReceiver.addEventListener('configuration', onConfiguration);
// messageReceiver.addEventListener('typing', onTyping); window.SwarmPolling.addPubkey(window.libsession.Utils.UserUtils.getOurPubKeyStrFromCache());
window.SwarmPolling.start();
window.libsession.Utils.AttachmentDownloads.start({ window.libsession.Utils.AttachmentDownloads.start({
logger: window.log, logger: window.log,
}); });

@ -2,7 +2,7 @@
"name": "session-desktop", "name": "session-desktop",
"productName": "Session", "productName": "Session",
"description": "Private messaging from your desktop", "description": "Private messaging from your desktop",
"version": "1.5.5", "version": "1.5.6",
"license": "GPL-3.0", "license": "GPL-3.0",
"author": { "author": {
"name": "Loki Project", "name": "Loki Project",

@ -328,6 +328,7 @@ window.LokiPublicChatAPI = require('./js/modules/loki_public_chat_api');
window.LokiFileServerAPI = require('./js/modules/loki_file_server_api'); window.LokiFileServerAPI = require('./js/modules/loki_file_server_api');
window.LokiPushNotificationServerApi = require('./js/modules/loki_push_notification_server_api'); window.LokiPushNotificationServerApi = require('./js/modules/loki_push_notification_server_api');
window.SwarmPolling = require('./ts/session/snode_api/swarmPolling').SwarmPolling.getInstance();
const WorkerInterface = require('./js/modules/util_worker_interface'); const WorkerInterface = require('./js/modules/util_worker_interface');

@ -141,7 +141,7 @@ const setupTheme = (dispatch: Dispatch<any>) => {
}; };
// Do this only if we created a new Session ID, or if we already received the initial configuration message // Do this only if we created a new Session ID, or if we already received the initial configuration message
const triggerSyncIfIfNeeded = async () => { const triggerSyncIfNeeded = async () => {
const didWeHandleAConfigurationMessageAlready = const didWeHandleAConfigurationMessageAlready =
(await getItemById(hasSyncedInitialConfigurationItem))?.value || false; (await getItemById(hasSyncedInitialConfigurationItem))?.value || false;
if (didWeHandleAConfigurationMessageAlready) { if (didWeHandleAConfigurationMessageAlready) {
@ -174,7 +174,7 @@ const doAppStartUp = (dispatch: Dispatch<any>) => {
void OpenGroupManagerV2.getInstance().startPolling(); void OpenGroupManagerV2.getInstance().startPolling();
// trigger a sync message if needed for our other devices // trigger a sync message if needed for our other devices
void triggerSyncIfIfNeeded(); void triggerSyncIfNeeded();
void loadDefaultRooms(); void loadDefaultRooms();

@ -409,7 +409,7 @@ const handleCompactPollResults = async (
serverUrl: string, serverUrl: string,
results: Array<ParsedRoomCompactPollResults> results: Array<ParsedRoomCompactPollResults>
) => { ) => {
console.warn('compoll res', results); // console.warn('compoll res', results);
await Promise.all( await Promise.all(
results.map(async res => { results.map(async res => {
const convoId = getOpenGroupV2ConversationId(serverUrl, res.roomId); const convoId = getOpenGroupV2ConversationId(serverUrl, res.roomId);

@ -643,7 +643,7 @@ function addMemberToZombies(
if (isAlreadyZombie) { if (isAlreadyZombie) {
return false; return false;
} }
console.warn('Marking user ', userToAdd.key, ' as a zombie'); // console.warn('Marking user ', userToAdd.key, ' as a zombie');
convo.set('zombies', [...zombies, userToAdd.key]); convo.set('zombies', [...zombies, userToAdd.key]);
return true; return true;
} }

@ -102,7 +102,7 @@ export class AttachmentUtils {
pointer.id = uploadToV2Result.fileId; pointer.id = uploadToV2Result.fileId;
pointer.url = uploadToV2Result.fileUrl; pointer.url = uploadToV2Result.fileUrl;
} else { } else {
console.warn('upload to file server v2 failed'); window.log.warn('upload to file server v2 failed');
} }
} else { } else {
const result = isAvatar const result = isAvatar

@ -42,7 +42,7 @@ export const syncConfigurationIfNeeded = async () => {
const now = Date.now(); const now = Date.now();
// if the last sync was less than 2 days before, return early. // if the last sync was less than 2 days before, return early.
if (Math.abs(now - lastSyncedTimestamp) < DAYS * 2) { if (Math.abs(now - lastSyncedTimestamp) < DAYS * 7) {
return; return;
} }
@ -195,7 +195,7 @@ export const getCurrentConfigurationMessage = async (convos: Array<ConversationM
const activeOpenGroups = [...openGroupsV1Ids, ...opengroupV2CompleteUrls]; const activeOpenGroups = [...openGroupsV1Ids, ...opengroupV2CompleteUrls];
console.warn('SyncConfiguration', activeOpenGroups); // console.warn('SyncConfiguration', activeOpenGroups);
return new ConfigurationMessage({ return new ConfigurationMessage({
identifier: uuid(), identifier: uuid(),

Loading…
Cancel
Save