Adds all message actions to context menu
This commit is contained in:
parent
b71122c7f9
commit
4c85c04d45
2 changed files with 18 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue