mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Bug solved creating group on chat module
This commit is contained in:
@@ -31,6 +31,7 @@ import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { DataService } from 'src/app/services/data.service';
|
||||
import { SqliteService } from 'src/app/services/sqlite.service';
|
||||
import { StorageService } from 'src/app/services/storage.service';
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
|
||||
|
||||
|
||||
@@ -385,7 +386,7 @@ export class ChatPage implements OnInit {
|
||||
})
|
||||
|
||||
this.storageservice.get('chatusers').then((users) => {
|
||||
this.dmUsers = users.filter(data => data.username != this.loggedUserChat.me.username);
|
||||
this.dmUsers = users.filter(data => data.username != SessionStore.user.RochetChatUser);
|
||||
})
|
||||
} else {
|
||||
this.sqlservice.getAllChatRoom().then((rooms: any) => {
|
||||
@@ -428,7 +429,7 @@ export class ChatPage implements OnInit {
|
||||
chatusersArray.push(userListDB);
|
||||
});
|
||||
|
||||
this.dmUsers = chatusersArray.filter(data => data.username != this.loggedUserChat.me.username);
|
||||
this.dmUsers = chatusersArray.filter(data => data.username != SessionStore.user.RochetChatUser);
|
||||
|
||||
})
|
||||
}
|
||||
@@ -544,7 +545,7 @@ export class ChatPage implements OnInit {
|
||||
})
|
||||
|
||||
this.storageservice.get('chatusers').then((users) => {
|
||||
this.dmUsers = users.filter(data => data.username != this.loggedUserChat.me.username);
|
||||
this.dmUsers = users.filter(data => data.username != SessionStore.user.RochetChatUser);
|
||||
})
|
||||
} else {
|
||||
this.sqlservice.getAllChatRoom().then((rooms: any) => {
|
||||
|
||||
Reference in New Issue
Block a user