-add start direct message method from mobile App

- more improvements
This commit is contained in:
tiago.kayaya
2021-01-14 16:51:16 +01:00
parent 859bccc076
commit 48dbaa7744
7 changed files with 105 additions and 29 deletions
+4 -4
View File
@@ -5,15 +5,15 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class FilterPipe implements PipeTransform {
transform(contatcs: any[], text:string, column:string): any {
transform(array: any[], text:string, column:string): any {
if(text === ''){
return contatcs;
return array;
}
text = text.toLowerCase();
return contatcs.filter(item =>{
return array.filter(item =>{
return item[column].toLowerCase().includes(text);
});
}