File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -304,11 +304,13 @@ async function handleRegularMessage(
304
304
305
305
handleLinkPreviews ( rawDataMessage . body , rawDataMessage . preview , message ) ;
306
306
307
- // TODO: add pro status check for sender
308
- const isSenderPro = false ;
309
- const maxChars = isSenderPro
310
- ? Constants . CONVERSATION . MAX_MESSAGE_CHAR_COUNT_PRO
311
- : Constants . CONVERSATION . MAX_MESSAGE_CHAR_COUNT_STANDARD ;
307
+ // TODO: Once pro proof validation is available make this dynamic
308
+ // const maxChars = isSenderPro
309
+ // ? Constants.CONVERSATION.MAX_MESSAGE_CHAR_COUNT_PRO
310
+ // : Constants.CONVERSATION.MAX_MESSAGE_CHAR_COUNT_STANDARD;
311
+ // NOTE: The truncation value must be the Pro count so when Pro is released older clients wont truncate pro messages.
312
+ const maxChars = Constants . CONVERSATION . MAX_MESSAGE_CHAR_COUNT_PRO ;
313
+
312
314
const body =
313
315
rawDataMessage . body . length > maxChars
314
316
? rawDataMessage . body . slice ( 0 , maxChars )
You can’t perform that action at this time.
0 commit comments