@pubuduth-aplicy/chat-ui 2.1.31 → 2.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ const MessageInput = () => {
|
|
|
15
15
|
const { mutate: sendMessage } = useMessageMutation();
|
|
16
16
|
const [typingUser, setTypingUser] = useState<string | null>(null);
|
|
17
17
|
const [isSending, setIsSending] = useState(false);
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18
19
|
const [isTyping, setIsTyping] = useState(false); // Track if the user is typing
|
|
19
20
|
|
|
20
21
|
useEffect(() => {
|
|
@@ -115,7 +116,7 @@ const MessageInput = () => {
|
|
|
115
116
|
</button>
|
|
116
117
|
</div>
|
|
117
118
|
|
|
118
|
-
{
|
|
119
|
+
{typingUser && typingUser !== userId && !isSending &&(
|
|
119
120
|
<div className="typingIndicator">Someone is typing...</div>
|
|
120
121
|
)}
|
|
121
122
|
|