mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-02-10 18:15:05 +08:00
Fixed Bug 78445 - Chat name input field is not limited
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -170,6 +170,7 @@ const ChatListItem = ({
|
||||
}}
|
||||
autoFocus
|
||||
className="w-full"
|
||||
maxLength={128}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
|
||||
@ -109,7 +109,9 @@ class Provider {
|
||||
createChatName = async (message: string) => {
|
||||
if (!this.currentProvider) return "";
|
||||
|
||||
return this.currentProvider.createChatName(message);
|
||||
const title = await this.currentProvider.createChatName(message);
|
||||
|
||||
return title.slice(0, 128);
|
||||
};
|
||||
|
||||
sendMessage = (
|
||||
|
||||
Reference in New Issue
Block a user