merge with Chatte

This commit is contained in:
2023-12-18 21:27:52 +01:00
6 changed files with 35 additions and 26 deletions

View File

@ -8,10 +8,13 @@ class Channels {
async createChannel(users_id, reload) {
let null_id = false;
users_id.forEach(user_id => {
if (user_id == null)
return console.log("createChannel error, null id;");
null_id = true;
});
if (null_id)
return console.log(users_id, "createChannel error, null id;");
let response = await this.client._post("/api/chat/", {
users_id:users_id