fix(core): unexpected redirect to expired page after accepting invitation (#10257)

Co-authored-by: EYHN <cneyhn@gmail.com>
This commit is contained in:
JimmFly
2025-02-19 17:10:12 +08:00
committed by GitHub
parent 487158b9ca
commit b456feee63
5 changed files with 40 additions and 25 deletions

View File

@@ -24,6 +24,7 @@ export class AcceptInviteService extends Service {
) {
super();
}
inviteId$ = new LiveData<string | undefined>(undefined);
inviteInfo$ = new LiveData<InviteInfo | undefined>(undefined);
accepted$ = new LiveData<boolean>(false);
loading$ = new LiveData(false);
@@ -61,6 +62,7 @@ export class AcceptInviteService extends Service {
}),
catchErrorInto(this.error$),
onStart(() => {
this.inviteId$.setValue(inviteId);
this.loading$.setValue(true);
this.inviteInfo$.setValue(undefined);
this.accepted$.setValue(false);