diff --git a/projects/ucap-webmessenger-api-prompt/src/lib/services/call.service.ts b/projects/ucap-webmessenger-api-prompt/src/lib/services/call.service.ts index eb36b9c2..d05af8c1 100644 --- a/projects/ucap-webmessenger-api-prompt/src/lib/services/call.service.ts +++ b/projects/ucap-webmessenger-api-prompt/src/lib/services/call.service.ts @@ -2,7 +2,7 @@ import { Injectable, Inject } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; -import { map } from 'rxjs/operators'; +import { map, catchError } from 'rxjs/operators'; import { _MODULE_CONFIG } from '../config/token'; import { ModuleConfig } from '../config/module-config'; @@ -14,6 +14,7 @@ import { encodeCall, decodeCall } from '../apis/call'; +import { NGXLogger } from 'ngx-logger'; @Injectable({ providedIn: 'root' @@ -23,7 +24,8 @@ export class CallService { constructor( @Inject(_MODULE_CONFIG) private moduleConfig: ModuleConfig, - private httpClient: HttpClient + private httpClient: HttpClient, + private logger: NGXLogger ) { this.urls = UrlConfig.getUrls( this.moduleConfig.hostConfig, diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts index 3bdeac04..f9e2c908 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts @@ -27,8 +27,8 @@ import { } from '@ucap-webmessenger/ui'; import { VersionInfo2Response } from '@ucap-webmessenger/api-public'; import { LoginResponse } from '@ucap-webmessenger/protocol-authentication'; -import { map, take, finalize } from 'rxjs/operators'; -import { Subscription } from 'rxjs'; +import { map, take, finalize, catchError } from 'rxjs/operators'; +import { Subscription, of } from 'rxjs'; import { SelectGroupDialogComponent, SelectGroupDialogData, @@ -203,7 +203,8 @@ export class ProfileDialogComponent implements OnInit, OnDestroy { } else { this.logger.error(res); } - }) + }), + catchError(error => of(this.logger.debug(error))) ) .subscribe(); } diff --git a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html index e0d96f80..19230011 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.html @@ -7,6 +7,7 @@