update grouping

This commit is contained in:
Andrew Gundersen 2021-03-22 09:12:09 -05:00
commit 447a68e2de
8 changed files with 86 additions and 106 deletions

View file

@ -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

View file

@ -54,7 +54,7 @@ const saveWindowState = () => {
if (err) throw err;
return;
});
}
}
}
// Do this on window mount.