diff --git a/src/app/services/chat/ws-chat-methods.service.ts b/src/app/services/chat/ws-chat-methods.service.ts index b82f531c9..ac3bbeb64 100644 --- a/src/app/services/chat/ws-chat-methods.service.ts +++ b/src/app/services/chat/ws-chat-methods.service.ts @@ -166,11 +166,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); @@ -195,10 +195,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; @@ -246,12 +246,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) @@ -270,8 +270,8 @@ export class WsChatMethodsService { /** * @description convert rocketchat statues num to readable string - * @param text - * @returns + * @param text + * @returns */ statusNumberToText(text) { if(text == '0') { @@ -287,7 +287,7 @@ export class WsChatMethodsService { return "busy" } } - + deleteMessage(id?) { return this.WsChatService.deleteMessage(id);