bug issue, null users_id creation channel
This commit is contained in:
@ -7,6 +7,12 @@ class Channels {
|
||||
}
|
||||
|
||||
async createChannel(users_id, reload) {
|
||||
|
||||
users_id.forEach(user_id => {
|
||||
if (user_id == null)
|
||||
return console.log("createChannel error, null id;");
|
||||
});
|
||||
|
||||
let response = await this.client._post("/api/chat/", {
|
||||
users_id:users_id
|
||||
});
|
||||
|
Reference in New Issue
Block a user