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('reconnect', onReconnect);
messageReceiver.addEventListener('configuration', onConfiguration);
// messageReceiver.addEventListener('typing', onTyping);
window.SwarmPolling.addPubkey(window.libsession.Utils.UserUtils.getOurPubKeyStrFromCache());
window.SwarmPolling.start();
window.libsession.Utils.AttachmentDownloads.start({
logger: window.log,
});

@ -2,7 +2,7 @@
"name": "session-desktop",
"productName": "Session",
"description": "Private messaging from your desktop",
"version": "1.5.5",
"version": "1.5.6",
"license": "GPL-3.0",
"author": {
"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.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');

@ -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
const triggerSyncIfIfNeeded = async () => {
const triggerSyncIfNeeded = async () => {
const didWeHandleAConfigurationMessageAlready =
(await getItemById(hasSyncedInitialConfigurationItem))?.value || false;
if (didWeHandleAConfigurationMessageAlready) {
@ -174,7 +174,7 @@ const doAppStartUp = (dispatch: Dispatch<any>) => {
void OpenGroupManagerV2.getInstance().startPolling();
// trigger a sync message if needed for our other devices
void triggerSyncIfIfNeeded();
void triggerSyncIfNeeded();
void loadDefaultRooms();

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

@ -643,7 +643,7 @@ function addMemberToZombies(
if (isAlreadyZombie) {
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]);
return true;
}

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

@ -42,7 +42,7 @@ export const syncConfigurationIfNeeded = async () => {
const now = Date.now();
// 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;
}
@ -195,7 +195,7 @@ export const getCurrentConfigurationMessage = async (convos: Array<ConversationM
const activeOpenGroups = [...openGroupsV1Ids, ...opengroupV2CompleteUrls];
console.warn('SyncConfiguration', activeOpenGroups);
// console.warn('SyncConfiguration', activeOpenGroups);
return new ConfigurationMessage({
identifier: uuid(),

Loading…
Cancel
Save