Files
doneit-web/src/app/shared/popover/chat-message-debugging/chat-message-debugging.page.ts
T

30 lines
687 B
TypeScript
Raw Normal View History

2022-09-29 11:03:11 +01:00
import { Component, OnInit } from '@angular/core';
2022-09-29 12:17:00 +01:00
import { NavParams } from '@ionic/angular';
2022-09-30 15:13:36 +01:00
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
2022-09-29 11:03:11 +01:00
@Component({
selector: 'app-chat-message-debugging',
templateUrl: './chat-message-debugging.page.html',
styleUrls: ['./chat-message-debugging.page.scss'],
})
export class ChatMessageDebuggingPage implements OnInit {
2022-09-29 12:17:00 +01:00
roomId: string
2022-09-29 11:03:11 +01:00
constructor(
2022-09-30 15:13:36 +01:00
public ChatSystemService: ChatSystemService,
2022-09-29 12:17:00 +01:00
private navParams: NavParams
2022-09-29 11:03:11 +01:00
) { }
ngOnInit() {
2022-09-29 12:17:00 +01:00
this.roomId = this.navParams.get('roomId')
}
loadHistory() {
2022-09-30 15:13:36 +01:00
this.ChatSystemService.getDmRoom(this.roomId).loadHistory({});
2022-09-29 11:03:11 +01:00
}
}