emile 7 months ago
parent 353285c965
commit 39c6270c28

@ -205,7 +205,7 @@ class Osichat(WebsocketConsumer):
'name': chat_room.name, 'name': chat_room.name,
'last_update': chat_room.last_updated, 'last_update': chat_room.last_updated,
'date_created': chat_room.date_created, 'date_created': chat_room.date_created,
'unread_messages': chat_room.unread_messages(user), 'unread_messages': chat_room.unread_messages(self.scope["user"]),
'last_message': model_to_dict(ChatMessage.objects.filter(room=chat_room).last()) 'last_message': model_to_dict(ChatMessage.objects.filter(room=chat_room).last())
} }
members = chat_room.chatmember_set.all() members = chat_room.chatmember_set.all()

Loading…
Cancel
Save