This commit is contained in:
Peter Maquiran
2022-09-29 12:17:00 +01:00
parent 5e67619efe
commit 96c18e1cd6
5 changed files with 47 additions and 9 deletions
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NavParams } from '@ionic/angular';
import { WsChatMethodsService} from 'src/app/services/chat/ws-chat-methods.service';
@Component({
@@ -8,11 +9,21 @@ import { WsChatMethodsService} from 'src/app/services/chat/ws-chat-methods.servi
})
export class ChatMessageDebuggingPage implements OnInit {
roomId: string
constructor(
public wsChatMethodsService: WsChatMethodsService
public wsChatMethodsService: WsChatMethodsService,
private navParams: NavParams
) { }
ngOnInit() {
this.roomId = this.navParams.get('roomId')
}
loadHistory() {
this.wsChatMethodsService.getDmRoom(this.roomId).loadHistory({});
}
}