increase closed group size limit to 100

pull/1438/head
Audric Ackermann 4 years ago
parent 20c806be2d
commit 6dd9dde44f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -87,7 +87,7 @@
// Do not trigger an update if there is too many members // Do not trigger an update if there is too many members
if ( if (
newMembers.length + existingMembers.length > newMembers.length + existingMembers.length >
window.CONSTANTS.MEDIUM_GROUP_SIZE_LIMIT window.CONSTANTS.CLOSED_GROUP_SIZE_LIMIT
) { ) {
window.libsession.Utils.ToastUtils.pushTooManyMembers(); window.libsession.Utils.ToastUtils.pushTooManyMembers();
return; return;

@ -85,8 +85,7 @@ window.CONSTANTS = new (function() {
this.DEFAULT_PUBLIC_CHAT_URL = appConfig.get('defaultPublicChatServer'); this.DEFAULT_PUBLIC_CHAT_URL = appConfig.get('defaultPublicChatServer');
this.MAX_LINKED_DEVICES = 1; this.MAX_LINKED_DEVICES = 1;
this.MAX_CONNECTION_DURATION = 5000; this.MAX_CONNECTION_DURATION = 5000;
// Limited due to the proof-of-work requirement this.CLOSED_GROUP_SIZE_LIMIT = 100;
this.MEDIUM_GROUP_SIZE_LIMIT = 20;
// Number of seconds to turn on notifications after reconnect/start of app // Number of seconds to turn on notifications after reconnect/start of app
this.NOTIFICATION_ENABLE_TIMEOUT_SECONDS = 10; this.NOTIFICATION_ENABLE_TIMEOUT_SECONDS = 10;
this.SESSION_ID_LENGTH = 66; this.SESSION_ID_LENGTH = 66;

@ -62,7 +62,7 @@ async function createClosedGroup(
window.i18n('pickClosedGroupMember') window.i18n('pickClosedGroupMember')
); );
return; return;
} else if (groupMembers.length >= window.CONSTANTS.MEDIUM_GROUP_SIZE_LIMIT) { } else if (groupMembers.length >= window.CONSTANTS.CLOSED_GROUP_SIZE_LIMIT) {
ToastUtils.pushToastError( ToastUtils.pushToastError(
'closedGroupMaxSize', 'closedGroupMaxSize',
window.i18n('closedGroupMaxSize') window.i18n('closedGroupMaxSize')

@ -19,7 +19,6 @@ export const CONVERSATION = {
DEFAULT_DOCUMENTS_FETCH_COUNT: 150, DEFAULT_DOCUMENTS_FETCH_COUNT: 150,
DEFAULT_MESSAGE_FETCH_COUNT: 30, DEFAULT_MESSAGE_FETCH_COUNT: 30,
MAX_MESSAGE_FETCH_COUNT: 500, MAX_MESSAGE_FETCH_COUNT: 500,
MESSAGE_FETCH_INTERVAL: 1,
// Maximum voice message duraton of 5 minutes // Maximum voice message duraton of 5 minutes
// which equates to 1.97 MB // which equates to 1.97 MB
MAX_VOICE_MESSAGE_DURATION: 300, MAX_VOICE_MESSAGE_DURATION: 300,

Loading…
Cancel
Save