diff --git a/core/mail/protocol.py b/core/mail/protocol.py index 39a4c63..1c95f03 100644 --- a/core/mail/protocol.py +++ b/core/mail/protocol.py @@ -125,6 +125,8 @@ class LMTPHandler: log.info(f"Created email {email.id}") systemevent = await sync_to_async(SystemEvent.objects.create)(type='email received', reference=email.id) log.info(f"Created system event {systemevent.id}") + state_change = await sync_to_async( + active_issue_thread.state_changes.create)(state='new', issue_thread=active_issue_thread) channel_layer = get_channel_layer() await channel_layer.group_send( 'general', {"type": "generic.event", "name": "send_message_to_frontend", "event_id": systemevent.id, diff --git a/web/src/components/Navbar.vue b/web/src/components/Navbar.vue index 7b3f67a..e3dc6c6 100644 --- a/web/src/components/Navbar.vue +++ b/web/src/components/Navbar.vue @@ -13,13 +13,13 @@