Added online status
This commit is contained in:
parent
688e7fbf0e
commit
48891c4386
@ -48,7 +48,7 @@ class ChannelService(BaseService):
|
||||
if not user["last_ping"]:
|
||||
continue
|
||||
|
||||
if (datetime.fromisoformat(now()) - datetime.fromisoformat(user["last_ping"])).total_seconds() < 30:
|
||||
if (datetime.fromisoformat(now()) - datetime.fromisoformat(user["last_ping"])).total_seconds() >= 20:
|
||||
yield user
|
||||
|
||||
async def ensure_public_channel(self, created_by_uid):
|
||||
|
Loading…
Reference in New Issue
Block a user