From 67cb05be6bbf2ab26531a99b878bf41b8308fef4 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Wed, 4 Jul 2018 17:55:52 +0300 Subject: [PATCH] (Chat) Replaced multi line comments with single line comments --- src/app/main/apps/chat/chat.service.ts | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/app/main/apps/chat/chat.service.ts b/src/app/main/apps/chat/chat.service.ts index 10643081..af35cb3b 100644 --- a/src/app/main/apps/chat/chat.service.ts +++ b/src/app/main/apps/chat/chat.service.ts @@ -74,9 +74,7 @@ export class ChatService implements Resolve return item.contactId === contactId; }); - /** - * Create new chat, if it's not created yet. - */ + // Create new chat, if it's not created yet. if ( !chatItem ) { this.createNewChat(contactId).then((newChats) => { @@ -137,26 +135,18 @@ export class ChatService implements Resolve unread : null }; - /** - * Add new chat list item to the user's chat list - */ + // Add new chat list item to the user's chat list this.user.chatList.push(chatListItem); - /** - * Post the created chat - */ + // Post the created chat this._httpClient.post('api/chat-chats', {...chat}) .subscribe((response: any) => { - /** - * Post the new the user data - */ + // Post the new the user data this._httpClient.post('api/chat-user/' + this.user.id, this.user) .subscribe(newUserData => { - /** - * Update the user data from server - */ + // Update the user data from server this.getUser().then(updatedUser => { this.onUserUpdated.next(updatedUser); resolve(updatedUser);