This commit is contained in:
Peter Maquiran
2023-08-14 12:15:18 +01:00
parent fa6450f328
commit 0f3416cc30
7 changed files with 28 additions and 11 deletions
@@ -706,6 +706,22 @@ export class ChatSystemService {
}
}
async createGroup__(name, customFields = {}) {
const res: any = await this.createPrivateRoom(name, SessionStore.user.UserName, customFields);
console.log('room is created', res)
if(res?.result?.rid) {
try {
await this.getAllRooms();
return res
} catch (e) {}
console.log('room is loaded')
return res
} else {
return res
}
}
getGroupByName(name ) {
return this._group.find( e=> e.name == name)
}