diff --git a/src/app/services/chat/ws-chat-methods.service.ts b/src/app/services/chat/ws-chat-methods.service.ts index 4208e6ca7..f0d7af0d4 100644 --- a/src/app/services/chat/ws-chat-methods.service.ts +++ b/src/app/services/chat/ws-chat-methods.service.ts @@ -156,11 +156,11 @@ export class WsChatMethodsService { /** * @description when a new room is create, needs to subtribe in order to receive updates - * @param id - * @param roomData + * @param id + * @param roomData */ subscribeToRoomUpdate(id, roomData) { - + this.defaultSubtribe(id) this.prepareRoom(roomData); @@ -185,10 +185,10 @@ export class WsChatMethodsService { }) } - + /** - * @description create a representation of an room in these instance this.dm, this.group ... - * @param roomData + * @description create a representation of an room in these instance this.dm, this.group ... + * @param roomData */ prepareRoom(roomData) { let room:RoomService; @@ -236,12 +236,12 @@ export class WsChatMethodsService { * @param id user ID */ private getUserStatus(id?:string) { - + this.WsChatService.getUserStatus((d) => { const username = d.fields.args[0][1] const statusNum = d.fields.args[0][2] - + const statusText = this.statusNumberToText(statusNum) const user = this.getUserByName(username) @@ -260,8 +260,8 @@ export class WsChatMethodsService { /** * @description convert rocketchat statues num to readable string - * @param text - * @returns + * @param text + * @returns */ statusNumberToText(text) { if(text == '0') { @@ -277,7 +277,7 @@ export class WsChatMethodsService { return "busy" } } - + deleteMessage(id?) { return this.WsChatService.deleteMessage(id);