Skip to content

Commit

Permalink
Changed maximum message limit from 200 to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Sep 14, 2023
1 parent 5cdf0cc commit 9e544a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chat-api/store/useMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ const loadAroundAndStoreMessages = async (channelId: string, aroundMessageId: st
}

function sliceEnd(arr: any[]) {
return arr.slice(0, env.MESSAGE_LIMIT * 4);
return arr.slice(0, env.MESSAGE_LIMIT * 2);
}

function sliceBeginning(arr: any[]) {
return arr.slice(-(env.MESSAGE_LIMIT * 4), arr.length);
return arr.slice(-(env.MESSAGE_LIMIT * 2), arr.length);
}


Expand Down

0 comments on commit 9e544a3

Please sign in to comment.