- delete group implemented

- add group in progress
This commit is contained in:
tiago.kayaya
2021-01-20 16:58:04 +01:00
parent bae1f89b73
commit 608eee8cc2
77 changed files with 1795 additions and 2388 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ export class ChatPage implements OnInit {
this.publicGroups = res.channels;
let all = this.privateGroups.concat(this.publicGroups);
this.allGroups = all.sort((a,b)=>{
var dateA = new Date(a.lastMessage._updatedAt).getTime();
var dateB = new Date(b.lastMessage._updatedAt).getTime();
var dateA = new Date(a._updatedAt).getTime();
var dateB = new Date(b._updatedAt).getTime();
return dateB - dateA;
});
console.log(this.allGroups);