diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index f2d7641aa..1dcc85a71 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -29,8 +29,7 @@ import { Device } from '@capacitor/device'; 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"; +import { v4 as uuidv4 } from 'uuid'; @Component({ selector: 'app-home', @@ -113,7 +112,7 @@ export class HomePage implements OnInit { version: "1", support: ["1", "pre2", "pre1"] } - + // ======================= connect socket.send(JSON.stringify(connectRequest )) }; @@ -134,7 +133,7 @@ export class HomePage implements OnInit { params: [ { "user": { - "username": "paulo.pinto" + "username": "paulo.pinto" }, "password": "tabteste@006" } @@ -177,7 +176,7 @@ export class HomePage implements OnInit { console.log(`[error] ${event.message}`); }; - + // this.RocketChatClientService.send() /* this.webNotificationPopupService.askNotificationPermission() */ @@ -244,7 +243,7 @@ export class HomePage implements OnInit { logDeviceInfo = async () => { const info = await Device.getInfo(); - + console.log('Device info',info); }; @@ -274,7 +273,7 @@ export class HomePage implements OnInit { }); } - + async synchWhenOnline() { try { await this.storage.get('eventEdit').then((req) => {