Adds all message actions to context menu

This commit is contained in:
Josh Perez 2021-12-06 16:52:47 -05:00 committed by GitHub
parent b71122c7f9
commit 4c85c04d45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 7 deletions

View file

@ -27,6 +27,10 @@ const INITIAL_LENGTH = 800;
const INCREMENT_COUNT = 3000;
const BUFFER = 100;
export function doesMessageBodyOverflow(str: string): boolean {
return str.length > INITIAL_LENGTH + BUFFER;
}
function graphemeAwareSlice(
str: string,
length: number