handle desktop ngOnDestroy()

This commit is contained in:
rr-bw 2024-09-11 10:33:03 -07:00
parent 167b246112
commit e3219d2766
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
}
ngOnDestroy(): void {
if (this.clientType === ClientType.Desktop) {
// TODO-rr-bw: refactor to not use deprecated broadcaster service.
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
}
this.destroy$.next();
this.destroy$.complete();
}