[client] F22a: forget_invite, so an unclaimed invite's mailbox is not fetched for ever
ci / check (pull_request) Has been cancelled
ci / check (pull_request) Has been cancelled
This commit is contained in:
@@ -294,6 +294,13 @@ impl<T: Transport> Client<T> {
|
||||
Ok(invite)
|
||||
}
|
||||
|
||||
/// Stops fetching an invite's welcome mailbox: the invite was cancelled, or is older than the
|
||||
/// relay keeps unclaimed invites (7 days; the app has the clock, the library has none).
|
||||
/// Otherwise an unclaimed invite's mailbox is fetched for ever. Save the snapshot after it.
|
||||
pub fn forget_invite(&mut self, invite: &InviteId) {
|
||||
self.welcome_boxes.retain(|w| w.invite != *invite);
|
||||
}
|
||||
|
||||
/// Step 2, on the other device, staged: claims the KeyPackage (which uses the link up) and
|
||||
/// creates our mailbox, then makes the group. The Welcome and our `hello` come back for the
|
||||
/// app to deliver after saving.
|
||||
|
||||
Reference in New Issue
Block a user