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