Fix removing a user when he leave a channel

This commit is contained in:
adator
2025-08-21 01:38:23 +02:00
parent 483638dab4
commit ae1f0ed424
4 changed files with 5 additions and 10 deletions

View File

@@ -83,7 +83,7 @@ class Channel:
return True
def delete_user_from_channel(self, channel_name: str, uid:str) -> bool:
def delete_user_from_channel(self, channel_name: str, uid: str) -> bool:
"""Delete a user from a channel
Args:
@@ -95,8 +95,7 @@ class Channel:
"""
try:
result = False
chan_obj = self.get_channel(channel_name.lower())
chan_obj = self.get_channel(channel_name)
if chan_obj is None:
return result