update grouping
This commit is contained in:
parent
e7fd5a0bfa
commit
447a68e2de
8 changed files with 86 additions and 106 deletions
|
|
@ -86,7 +86,7 @@ const handleStandardMessage = (m: StandardMessage) => {
|
|||
|
||||
const handleAnnotationMessage = (message: Annotation) => {
|
||||
backgroundMitt.emit('ipc-renderer', {
|
||||
endpoint: 'annotate-message',
|
||||
endpoint: 'render-message',
|
||||
message: message
|
||||
});
|
||||
}
|
||||
|
|
@ -102,6 +102,7 @@ const onMessage = (messageStr: string): void => {
|
|||
}
|
||||
|
||||
const message = JSON.parse(messageStr)
|
||||
console.log("New message:")
|
||||
console.log(message)
|
||||
|
||||
if (message.content) {
|
||||
|
|
@ -159,7 +160,7 @@ export function initSession(): void {
|
|||
socket.on('open', () => {
|
||||
console.log('Connected to Crimata Servers.');
|
||||
|
||||
// call auth renderer event on connection
|
||||
// Try to authenticate token right away.
|
||||
backgroundMitt.emit('ipc-renderer', {
|
||||
endpoint: 'auth',
|
||||
message: null
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ const saveWindowState = () => {
|
|||
if (err) throw err;
|
||||
return;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Do this on window mount.
|
||||
|
|
|
|||
Loading…
Reference in a new issue