From 8b673fd1baf3158e7b2cd2a5a2d5d0e33cc159e1 Mon Sep 17 00:00:00 2001 From: emile Date: Tue, 1 Oct 2024 10:59:45 +0300 Subject: [PATCH] new --- osinaweb/osichat/consumers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osinaweb/osichat/consumers.py b/osinaweb/osichat/consumers.py index b5378ab5..8d523b80 100644 --- a/osinaweb/osichat/consumers.py +++ b/osinaweb/osichat/consumers.py @@ -402,7 +402,7 @@ class OsitcomChatRoom(WebsocketConsumer): async_to_sync(self.channel_layer.group_discard)( self.group, self.channel_name ) - self.group = f"{self.session_id}_{self.chat_room.id}" + self.group = f"chat_{self.chat_room.id}" async_to_sync(self.channel_layer.group_add)( self.group, self.channel_name )