solved unauthorized rockect chat url

This commit is contained in:
tiago.kayaya
2021-10-05 10:18:38 +01:00
parent 3f99ea222c
commit 5d4490e287
8 changed files with 34 additions and 30 deletions
+1 -3
View File
@@ -9,7 +9,6 @@ import { Storage } from '@ionic/storage';
import { Message } from 'src/app/models/message.model';
import { Observable, Subject } from "rxjs/Rx";
import { WebsocketService } from './websocket.service';
import { FileService } from './functions/file.service';
@Injectable({
providedIn: 'root'
@@ -32,7 +31,6 @@ export class ChatService {
private authService: AuthService,
private storage: Storage,
private storageService:StorageService,
private fileService: FileService,
//private wsService: WebsocketService,
)
{
@@ -63,7 +61,7 @@ export class ChatService {
};
let fullUrl = "https://www.tabularium.pt/" + url;
return this.http.get(fullUrl, optionsc).subscribe(()=>{
this.fileService.viewDocumentByUrl(url)
//this.fileService.viewDocumentByUrl(url)
});
}