This commit is contained in:
tiago.kayaya
2022-01-14 09:00:42 +01:00
parent 6efcf203a1
commit 8b4be091cb
2 changed files with 4 additions and 6 deletions
+3 -3
View File
@@ -144,7 +144,7 @@ export class ChatPage implements OnInit {
console.log("Response from Websocket server: "+msg);
}); */
this.load()
//this.load()
}
ngOnInit() {
@@ -156,9 +156,9 @@ export class ChatPage implements OnInit {
this.authService.userData$.subscribe((res: any) => {
this.loggedUser = res;
//console.log(this.loggedUser);
this.load();
//this.load();
this.getDirectMessagesDB();
//this.getDirectMessagesDB();
});
/* websocket functions */
@@ -73,8 +73,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
@ViewChild('scrollMe') private myScrollContainer: ElementRef;
pdfurl = "http://www.africau.edu/images/default/sample.pdf";
constructor(
private menu: MenuController,
private modalController: ModalController,
@@ -92,7 +90,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
private fileService: FileService,
public ThemeService: ThemeService,
private changeDetectorRef: ChangeDetectorRef,
public wsChatMethodsService: WsChatMethodsService
//public wsChatMethodsService: WsChatMethodsService
) {
this.loggedUserChat = authService.ValidatedUserChat['data'];
this.isGroupCreated = true;