import { Component, OnInit } from '@angular/core'; import { NavParams } from '@ionic/angular'; import { ChatSystemService } from 'src/app/services/chat/chat-system.service'; @Component({ selector: 'app-chat-message-debugging', templateUrl: './chat-message-debugging.page.html', styleUrls: ['./chat-message-debugging.page.scss'], }) export class ChatMessageDebuggingPage implements OnInit { roomId: string constructor( public ChatSystemService: ChatSystemService, private navParams: NavParams ) { } ngOnInit() { this.roomId = this.navParams.get('roomId') } loadHistory() { this.ChatSystemService.getDmRoom(this.roomId).loadHistory({}); } }