add chat offline

This commit is contained in:
Peter Maquiran
2022-02-02 20:16:12 +01:00
parent 58e9698264
commit 33cce0fd44
7 changed files with 134 additions and 49 deletions
@@ -131,7 +131,7 @@ export class WsChatMethodsService {
/**
* @description sort room list by last message date
*/
sortRoomList() {
sortRoomList =() => {
this._dm = this.sortService.sortDate(this._dm,'_updatedAt').reverse()
this._group = this.sortService.sortDate(this._group,'_updatedAt').reverse()
}
@@ -207,6 +207,7 @@ export class WsChatMethodsService {
room.receiveMessage()
room.getAllUsers = this.getUsers
room.receiveMessageDelete();
room.sortRoomList = this.sortRoomList
let roomId = this.getRoomId(roomData)