openspades icon indicating copy to clipboard operation
openspades copied to clipboard

Suggestion: Remaining characters for chat messages

Open adterval opened this issue 4 years ago • 2 comments

Remaining characters would turn red if you already used them all. image

adterval avatar May 30 '20 21:05 adterval

@NotAFile Does piqueserver (or pyspades) have a hard-coded limit for chat messages? If so, how is it measured (UTF-8 encoded bytes, grapheme clusters, post-NFC scalars, etc.)?

yvt avatar May 31 '20 04:05 yvt

@yvt MAX_CHAT_SIZE is 90 unicode codepoints. Although it's applied somewhat inconsistently. It does not do any normalization. This is roughly what the original client could display.

NotAFile avatar Aug 05 '20 19:08 NotAFile