Uniformize WebSocketMessageType
Change-Id: I26d0f193804773d5835413deb4f4e26d30ea711a
diff --git a/client/src/components/SendMessageForm.tsx b/client/src/components/SendMessageForm.tsx
index c0b9253..e5d2371 100644
--- a/client/src/components/SendMessageForm.tsx
+++ b/client/src/components/SendMessageForm.tsx
@@ -52,13 +52,13 @@
// We ensure it will stay on at least 4 seconds after the last typed character
if (currentTime - composingNotificationTimeRef.current > 8000) {
composingNotificationTimeRef.current = currentTime;
- webSocket?.send(WebSocketMessageType.SetIsComposing, { conversationId, isWriting: true });
+ webSocket?.send(WebSocketMessageType.ComposingStatus, { conversationId, isWriting: true });
}
}, [webSocket, conversationId]);
const notifyStopcomposing = useCallback(() => {
composingNotificationTimeRef.current = 0;
- webSocket?.send(WebSocketMessageType.SetIsComposing, { conversationId, isWriting: false });
+ webSocket?.send(WebSocketMessageType.ComposingStatus, { conversationId, isWriting: false });
}, [webSocket, conversationId]);
const handleSubmit = useCallback(