Skip to content

Commit 46b106a

Browse files
committed
fix typo SET_OFFLINE -> SET_ONLINE
1 parent a414f2e commit 46b106a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

chats/consumers/chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ async def connect(self):
7070
# notify everyone that this user is online
7171
await self.channel_layer.group_send(
7272
EventGroupType.GENERAL_EVENTS,
73-
{"type": EventType.SET_OFFLINE, "user": {"id": self.user.id}},
73+
{"type": EventType.SET_ONLINE, "user": {"id": self.user.id}},
7474
)
7575

76+
# add to group to listen for general events, like online/offline
7677
await self.channel_layer.group_add(
7778
EventGroupType.GENERAL_EVENTS, self.channel_name
7879
)

0 commit comments

Comments
 (0)