mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
solved unauthorized rockect chat url
This commit is contained in:
@@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user