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
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