mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 12:35:07 +00:00
(Chat App) Adding chat service function fixed
This commit is contained in:
parent
31df82fe09
commit
0270405353
|
@ -88,10 +88,11 @@ export class ChatService implements Resolve<any>
|
||||||
};
|
};
|
||||||
|
|
||||||
const chatListItem = {
|
const chatListItem = {
|
||||||
'id' : chatId,
|
contactId : contactId,
|
||||||
'contactId' : contactId,
|
id : chatId,
|
||||||
'unread' : null,
|
lastMessageTime: '2017-02-18T10:30:18.931Z',
|
||||||
'lastMessageTime': '2017-02-18T10:30:18.931Z'
|
name : contact.name,
|
||||||
|
unread : null,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -109,7 +110,7 @@ export class ChatService implements Resolve<any>
|
||||||
* Post the new the user data
|
* Post the new the user data
|
||||||
*/
|
*/
|
||||||
this.http.post('api/chat-user/' + this.user.id, this.user)
|
this.http.post('api/chat-user/' + this.user.id, this.user)
|
||||||
.subscribe(addedlistItem => {
|
.subscribe(newUserData => {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the user data from server
|
* Update the user data from server
|
||||||
|
|
Loading…
Reference in New Issue
Block a user