Skip to content

Commit

Permalink
MAX_LISTENERS added into .env
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminDreasond committed May 31, 2024
1 parent 14853b1 commit e1d56cc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ AUTO_ENCRYPT_CREATE_DM=true
# Disable all encrypt options (But it will not disable what is already enabled)
DISABLE_ENCRYPT_SETTINGS=false

# Max Event Listeners.
MAX_LISTENERS=1000

### Appearance

# Are you looking for the discord style in your life? So check this option for this to come true in the font style.
Expand Down
1 change: 1 addition & 0 deletions info/dev/preparing-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
- Join/Leave messages sync fixed.
- Thread leave icon added.
- New fav emoji limit.
- MAX_LISTENERS added into ".env".
2 changes: 0 additions & 2 deletions info/dev/requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ Ver a lista de quem reagiu

Quando o people tabs é atualizado, o custom status some

css de avatar no topo na lista de rooms/dms

=========> Dots invadindo o contador no DM quando a room é encryptada.

urlParams.set('event_id', eventId, false);
Expand Down
2 changes: 1 addition & 1 deletion src/util/matrixUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SpaceLockIC = './img/ic/outlined/space-lock.svg';

const WELL_KNOWN_URI = '/.well-known/matrix/client';

export const eventMaxListeners = 1000;
export const eventMaxListeners = __ENV_APP__.MAX_LISTENERS;

export async function getBaseUrl(servername) {
let protocol = 'https://';
Expand Down
2 changes: 2 additions & 0 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export default defineConfig(({ command, mode }) => {
HOVER_SIDEBAR: !!(env.HOVER_SIDEBAR === true || env.HOVER_SIDEBAR === 'true'),
SIDEBAR_TRANSITION: !!(env.SIDEBAR_TRANSITION === true || env.SIDEBAR_TRANSITION === 'true'),

MAX_LISTENERS: Number(env.MAX_LISTENERS),

EMOJIBOARD: {
ROW_LIMIT: {

Expand Down

0 comments on commit e1d56cc

Please sign in to comment.