forked from retoor/snek
Added online status
This commit is contained in:
@@ -39,8 +39,9 @@ class ChannelService(BaseService):
|
||||
is_muted=False,
|
||||
deleted_at=None,
|
||||
):
|
||||
yield await self.services.user.get(uid=channel_member["user_uid"])
|
||||
|
||||
user = await self.services.user.get(uid=channel_member["user_uid"])
|
||||
if user:
|
||||
yield user
|
||||
async def get_online_users(self, channel_uid):
|
||||
users = []
|
||||
async for user in self.get_users(channel_uid):
|
||||
|
||||
Reference in New Issue
Block a user