Copy a message to the clipboard from the chat
Bot and user messages get a quiet copy button under them: the copy icon becomes a check for a moment after it copies the message's text as stored, markdown and refs included. A message still on its way to the server can be copied too, though reply and reactions wait for its id. The async clipboard API is used where it exists and a hidden textarea where a plain HTTP install has none.
This commit is contained in:
@@ -62,7 +62,7 @@ export const AppData = {
|
||||
* them.
|
||||
*/
|
||||
LastVisitedBotCookieName: `${SiteData["SiteSlug"]}_last_visited_bot_id`,
|
||||
LastVisitedWorkspaceCookieName: `${SiteData["SiteSlug"]}_last_visited_workspace_id`,
|
||||
// LastVisitedWorkspaceCookieName: `${SiteData["SiteSlug"]}_last_visited_workspace_id`,
|
||||
LastVisitedCookieMaxAgeSeconds: 365 * 24 * 60 * 60,
|
||||
AuthExpiryDays: 60,
|
||||
APICrudBasePath: "/api/admin/crud",
|
||||
@@ -395,6 +395,11 @@ export const AppData = {
|
||||
* Most bots or workspaces the composer's mention menu lists at once.
|
||||
*/
|
||||
ComposerMentionMaxItems: 6,
|
||||
/**
|
||||
* How long a message's copy button shows a check after it copied the
|
||||
* message, before it goes back to the copy icon.
|
||||
*/
|
||||
CopyConfirmationMs: 1500,
|
||||
/**
|
||||
* Most of a bot message read aloud; the rest is cut.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user