Merge branch 'feature/websocket' of https://bitbucket.org/equilibriumito/gabinete-digital into feature/websocket

This commit is contained in:
tiago.kayaya
2022-01-12 12:14:45 +01:00
28 changed files with 343 additions and 80 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ export class ChatService {
let opts = {
headers: this.headers,
}
return this.http.post(environment.apiChatUrl+'im.close', body, this.options);
return this.http.post(environment.apiChatUrl+'im.delete', body, this.options);
}
createRoom(body:any){
+3 -3
View File
@@ -1,13 +1,13 @@
import { TestBed } from '@angular/core/testing';
import { ChatService } from './chat.service';
import { wsChatService } from './chat.service';
describe('ChatService', () => {
let service: ChatService;
let service: wsChatService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ChatService);
service = TestBed.inject(wsChatService);
});
it('should be created', () => {
@@ -435,6 +435,7 @@ export class FileService {
{
"rid": roomId,
"msg": "",
"alias": "documento",
"attachments": [{
"title": res.data.selected.Assunto,
"description": res.data.selected.DocTypeDesc,