feat: set messageTranscriptSizeLimit to 150

This commit is contained in:
Jeremy Kahn 2022-10-29 13:25:31 -05:00
parent 9f0d20cd22
commit a5a61b0cb0
2 changed files with 16 additions and 5 deletions

View File

@ -1,2 +1,2 @@
export const messageCharacterSizeLimit = 10_000 export const messageCharacterSizeLimit = 10_000
export const messageTranscriptSizeLimit = 10_000 export const messageTranscriptSizeLimit = 150

View File

@ -3,10 +3,21 @@ import MuiMarkdown from 'mui-markdown'
import Box from '@mui/material/Box' import Box from '@mui/material/Box'
import { ShellContext } from 'contexts/ShellContext' import { ShellContext } from 'contexts/ShellContext'
import { messageCharacterSizeLimit } from 'config/messaging' import {
messageTranscriptSizeLimit,
messageCharacterSizeLimit,
} from 'config/messaging'
import './index.sass' import './index.sass'
const messageTranscriptSizeLimitFormatted = Intl.NumberFormat().format(
messageTranscriptSizeLimit
)
const messageCharacterSizeLimitFormatted = Intl.NumberFormat().format(
messageCharacterSizeLimit
)
export const About = () => { export const About = () => {
const { setTitle } = useContext(ShellContext) const { setTitle } = useContext(ShellContext)
@ -40,13 +51,13 @@ Conversation transcripts are erased from local memory as soon as you close the p
When a peer joins a **public** room with participants already in it, the new peer will automatically request the transcript of the conversation that has already taken place from the other peers. Once all peers leave the room, the conversation is completely erased. Peers joining a **private** room will not get the conversation transcript backfilled. When a peer joins a **public** room with participants already in it, the new peer will automatically request the transcript of the conversation that has already taken place from the other peers. Once all peers leave the room, the conversation is completely erased. Peers joining a **private** room will not get the conversation transcript backfilled.
Chat transcript history is limited to ${messageTranscriptSizeLimitFormatted} messages for all rooms.
#### Message Authoring #### Message Authoring
Chat messages support [GitHub-flavored Markdown](https://github.github.com/gfm/) with code syntax highlighting. Chat messages support [GitHub-flavored Markdown](https://github.github.com/gfm/) with code syntax highlighting.
Press \`Enter\` to send a message. Press \`Shift + Enter\` to insert a line break. Message size is limited to ${Intl.NumberFormat().format( Press \`Enter\` to send a message. Press \`Shift + Enter\` to insert a line break. Message size is limited to ${messageCharacterSizeLimitFormatted} characters.
messageCharacterSizeLimit
)} characters.
`} `}
</MuiMarkdown> </MuiMarkdown>
</Box> </Box>