Skip to content

Commit 7a91838

Browse files
authored
Merge pull request #1502 from session-foundation/core/bump_pre_pro_chars_receiving_limit
chore: bump pre-pro char receiving limit
2 parents 744baa3 + 10ad57a commit 7a91838

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ts/receiver/queuedJob.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,13 @@ async function handleRegularMessage(
304304

305305
handleLinkPreviews(rawDataMessage.body, rawDataMessage.preview, message);
306306

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+
312314
const body =
313315
rawDataMessage.body.length > maxChars
314316
? rawDataMessage.body.slice(0, maxChars)

0 commit comments

Comments
 (0)