This commit is contained in:
Peter Maquiran
2022-05-27 13:36:37 +01:00
parent 304975d823
commit ce7cee0876
25 changed files with 131 additions and 234 deletions
@@ -362,6 +362,15 @@ export class WsChatMethodsService {
}
}
deleteRoom(roomId) {
delete this.group[roomId];
const index = this._group.findIndex((e)=> e.id == roomId);
this._group = this._group.splice(index, 1);
}
roomExist(roomId) {
return this.dm[roomId]?.id || this.group[roomId]?.id
}