Uniformize WebSocketMessageType
Change-Id: I26d0f193804773d5835413deb4f4e26d30ea711a
diff --git a/client/src/contexts/ConversationProvider.tsx b/client/src/contexts/ConversationProvider.tsx
index 3c24896..d518c64 100644
--- a/client/src/contexts/ConversationProvider.tsx
+++ b/client/src/contexts/ConversationProvider.tsx
@@ -105,9 +105,9 @@
};
webSocket.send(WebSocketMessageType.ConversationView, conversationView);
- webSocket.bind(WebSocketMessageType.OnComposingStatusChanged, onComposingStatusChanged);
+ webSocket.bind(WebSocketMessageType.ComposingStatus, onComposingStatusChanged);
- return () => webSocket.unbind(WebSocketMessageType.OnComposingStatusChanged, onComposingStatusChanged);
+ return () => webSocket.unbind(WebSocketMessageType.ComposingStatus, onComposingStatusChanged);
}, [accountId, conversationInfos, conversationId, onComposingStatusChanged, webSocket]);
const value = useMemo(() => {