Added online status

This commit is contained in:
retoor 2025-02-10 16:24:43 +01:00
parent 688e7fbf0e
commit 48891c4386

View File

@ -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() < 30: 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):