diff --git a/js/views/invite_contacts_dialog_view.js b/js/views/invite_contacts_dialog_view.js index 55b58bcf4..d36448cb6 100644 --- a/js/views/invite_contacts_dialog_view.js +++ b/js/views/invite_contacts_dialog_view.js @@ -87,7 +87,7 @@ // Do not trigger an update if there is too many members if ( newMembers.length + existingMembers.length > - window.CONSTANTS.MEDIUM_GROUP_SIZE_LIMIT + window.CONSTANTS.CLOSED_GROUP_SIZE_LIMIT ) { window.libsession.Utils.ToastUtils.pushTooManyMembers(); return; diff --git a/preload.js b/preload.js index e07cfa0b6..a57f13a89 100644 --- a/preload.js +++ b/preload.js @@ -85,8 +85,7 @@ window.CONSTANTS = new (function() { this.DEFAULT_PUBLIC_CHAT_URL = appConfig.get('defaultPublicChatServer'); this.MAX_LINKED_DEVICES = 1; this.MAX_CONNECTION_DURATION = 5000; - // Limited due to the proof-of-work requirement - this.MEDIUM_GROUP_SIZE_LIMIT = 20; + this.CLOSED_GROUP_SIZE_LIMIT = 100; // Number of seconds to turn on notifications after reconnect/start of app this.NOTIFICATION_ENABLE_TIMEOUT_SECONDS = 10; this.SESSION_ID_LENGTH = 66; diff --git a/ts/components/MainViewController.tsx b/ts/components/MainViewController.tsx index 7480f49da..1b6c212df 100644 --- a/ts/components/MainViewController.tsx +++ b/ts/components/MainViewController.tsx @@ -62,7 +62,7 @@ async function createClosedGroup( window.i18n('pickClosedGroupMember') ); return; - } else if (groupMembers.length >= window.CONSTANTS.MEDIUM_GROUP_SIZE_LIMIT) { + } else if (groupMembers.length >= window.CONSTANTS.CLOSED_GROUP_SIZE_LIMIT) { ToastUtils.pushToastError( 'closedGroupMaxSize', window.i18n('closedGroupMaxSize') diff --git a/ts/session/constants.ts b/ts/session/constants.ts index e1674bb1e..55189fa69 100644 --- a/ts/session/constants.ts +++ b/ts/session/constants.ts @@ -19,7 +19,6 @@ export const CONVERSATION = { DEFAULT_DOCUMENTS_FETCH_COUNT: 150, DEFAULT_MESSAGE_FETCH_COUNT: 30, MAX_MESSAGE_FETCH_COUNT: 500, - MESSAGE_FETCH_INTERVAL: 1, // Maximum voice message duraton of 5 minutes // which equates to 1.97 MB MAX_VOICE_MESSAGE_DURATION: 300,