Uniformize WebSocketMessageType
Change-Id: I26d0f193804773d5835413deb4f4e26d30ea711a
diff --git a/server/src/jamid/jamid.ts b/server/src/jamid/jamid.ts
index 15ff23c..7ca3ea2 100644
--- a/server/src/jamid/jamid.ts
+++ b/server/src/jamid/jamid.ts
@@ -538,7 +538,7 @@
conversationId: signal.conversationId,
isWriting: signal.status === 1,
};
- this.webSocketServer.send(signal.accountId, WebSocketMessageType.OnComposingStatusChanged, data);
+ this.webSocketServer.send(signal.accountId, WebSocketMessageType.ComposingStatus, data);
});
}
}
diff --git a/server/src/websocket/chat-handler.ts b/server/src/websocket/chat-handler.ts
index 161203b..8789544 100644
--- a/server/src/websocket/chat-handler.ts
+++ b/server/src/websocket/chat-handler.ts
@@ -27,10 +27,10 @@
export function bindChatCallbacks() {
webSocketServer.bind(
- WebSocketMessageType.SetIsComposing,
+ WebSocketMessageType.ComposingStatus,
(accountId, { contactId, conversationId, isWriting }: ComposingStatus) => {
if (contactId !== undefined) {
- log.warn('SetIsComposing expects contactId to be undefined');
+ log.warn('ComposingStatus expects contactId to be undefined');
return;
}