Added a scuffed redirect to prior page for impersonation. Fixed some conditions for websocket message checks.

This commit is contained in:
Tom
2025-03-27 11:31:36 +00:00
parent 6e5efab5ec
commit b1bac758e3
10 changed files with 27 additions and 25 deletions

View File

@ -161,7 +161,7 @@ export class GroupPageComponent implements OnDestroy {
if (!this.group)
return;
this._client.first(d => d.d.request.type == 'delete_group' && d.d.request.data.id == this.group!.id)
this._client.first(d => d.op == 4 && d.d.request.type == 'delete_group' && d.d.request.data.id == this.group!.id)
.subscribe(async () => await this._router.navigate(['groups']));
this._client.deleteGroup(this.group.id);
}