Skip to content

Commit

Permalink
feat(Chat): remove duplicate channels from join list, fixes #257
Browse files Browse the repository at this point in the history
  • Loading branch information
Teekeks committed Aug 23, 2023
1 parent 88acc9a commit 55bdb35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twitchAPI/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,8 @@ async def join_room(self, chat_rooms: Union[List[str], str]):
await asyncio.sleep(0.01)
failed_to_join = [r for r in self._room_join_locks if r in target]
self._join_target.extend([x for x in target if x not in failed_to_join])
# deduplicate join target
self._join_target = list(set(self._join_target))
for r in failed_to_join:
self._room_join_locks.remove(r)
return failed_to_join
Expand Down

0 comments on commit 55bdb35

Please sign in to comment.