diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 3d47071c..94095623 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/support/__pycache__/consumers.cpython-310.pyc b/osinaweb/support/__pycache__/consumers.cpython-310.pyc index cb1dd8c2..a9a6d821 100644 Binary files a/osinaweb/support/__pycache__/consumers.cpython-310.pyc and b/osinaweb/support/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/support/consumers.py b/osinaweb/support/consumers.py index ca7b4417..77b3b6de 100644 --- a/osinaweb/support/consumers.py +++ b/osinaweb/support/consumers.py @@ -58,7 +58,6 @@ class TicketRoomConsumer(WebsocketConsumer): if event_type == 'typing': event = { 'type': 'typing_handler', - 'user': self.scope['user'] } async_to_sync(self.channel_layer.group_send)( self.ticket_number, event @@ -77,7 +76,6 @@ class TicketRoomConsumer(WebsocketConsumer): 'type': 'reaction_handler', 'update_id': update_id, 'reaction': reaction, - 'user': self.scope['user'] } async_to_sync(self.channel_layer.group_send)( self.ticket_number, event @@ -122,7 +120,7 @@ class TicketRoomConsumer(WebsocketConsumer): def typing_handler(self, event): context = { - 'user': event['user'] + 'user': self.scope['user'] } html = render_to_string("details_templates/partials/typing-message.html", context=context) self.send(text_data=json.dumps({