update renew, schema update, admins fix

This commit is contained in:
2022-12-06 07:53:20 +03:00
parent 35f540b26a
commit f70633d361
3 changed files with 6 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ async def create_chat(_, info, title="", members=[]):
"createdBy": auth.user_id,
"createdAt": int(datetime.now(tz=timezone.utc).timestamp()),
"updatedAt": int(datetime.now(tz=timezone.utc).timestamp()),
"admins": []
"admins": members if (len(members) == 2 and title == "") else []
}
for m in members: