Added online status

This commit is contained in:
retoor 2025-02-10 16:34:26 +01:00
parent 087ab1a8a5
commit 3f75c8d5f9

View File

@ -48,7 +48,7 @@ class ChannelService(BaseService):
if not user["last_ping"]:
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
async def ensure_public_channel(self, created_by_uid):