add metods to update room name

This commit is contained in:
Peter Maquiran
2024-06-11 13:48:44 +01:00
parent 4c1ad6d648
commit 540cbbc911
7 changed files with 44 additions and 14 deletions
@@ -10,6 +10,7 @@ import { SessionStore } from 'src/app/store/session.service';
import { HttpRequest } from '@angular/common/http';
import { ZodError } from 'zod';
import { HttpResponse } from '@microsoft/signalr';
import { ToastService } from 'src/app/services/toast.service';
@Component({
selector: 'app-group-contacts',
@@ -39,6 +40,7 @@ export class GroupContactsPage implements OnInit {
private contactsRepositoryService: ContactRepositoryService,
private RoomRepositoryService: RoomRepositoryService,
private httpErrorHandle: HttpErrorHandle,
private toastService: ToastService,
)
{}
ngOnInit(): void {
@@ -107,7 +109,7 @@ export class GroupContactsPage implements OnInit {
} else if (getallChatUsers.isErr() && getallChatUsers.error instanceof HttpResponse) {
this.httpErrorHandle.httpStatusHandle(getallChatUsers.error)
} else {
alert('else')
this.toastService._badRequest("Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico.")
}
const currentMemberIds = this.currentMembers.map(e => e.wxUserId)