diff --git a/src/components/chat/ChatInputBar.jsx b/src/components/chat/ChatInputBar.jsx index e0e9166..82af217 100644 --- a/src/components/chat/ChatInputBar.jsx +++ b/src/components/chat/ChatInputBar.jsx @@ -1,3 +1,6 @@ +// Тот же лимит, что ChatService.MAX_MESSAGE_LENGTH на бэкенде +const MAX_MESSAGE_LENGTH = 4000; + export default function ChatInputBar({ input, onInputChange, @@ -13,6 +16,7 @@ export default function ChatInputBar({ onChange={(e) => onInputChange(e.target.value)} placeholder={placeholder} className="chat-input" + maxLength={MAX_MESSAGE_LENGTH} /> + {!isOwnAd && ( + + )} {onMarkFound && isOwner && !isClosed && (