add loadHistory method

This commit is contained in:
Peter Maquiran
2022-01-10 17:52:49 +01:00
parent 316803e9e0
commit cb5cbfab69
2 changed files with 39 additions and 11 deletions
+2 -5
View File
@@ -17,7 +17,6 @@ import { File } from '@ionic-native/file/ngx';
/* import { WebNotificationPopupService } from '../services/notification/web-notification-popup.service'; */
import { DocumentCounterService } from '../services/worker/document-counter.service';
import { PermissionService } from '../services/worker/permission.service';
import { Network } from '@ionic-native/network/ngx';
import { BackgroundService } from 'src/app/services/background.service';
import { OfflineManagerService } from 'src/app/services/offline-manager.service';
import { Storage } from '@ionic/storage';
@@ -30,7 +29,6 @@ import { RouteService } from 'src/app/services/route.service';
import { RocketChatClientService } from 'src/app/services/socket/rocket-chat-client.service';
import { environment } from 'src/environments/environment';
import { v4 as uuidv4 } from 'uuid'
import { RealTimeAPI } from "rocket.chat.realtime.api.rxjs";
@Component({
selector: 'app-home',
@@ -74,8 +72,6 @@ export class HomePage implements OnInit {
status: string = "";
audioName: string = "";
RocketChatClientService = RocketChatClientService
constructor(
private router: Router,
public modalCtrl: AlertController,
@@ -96,7 +92,8 @@ export class HomePage implements OnInit {
private processservice: ProcessesService,
private screenOrientation: ScreenOrientation,
private sqliteservice: SqliteService,
private RouteService: RouteService) {
private RouteService: RouteService,
private RocketChatClientService: RocketChatClientService) {
this.RocketChatClientService.connect(()=>{