decline method
Forgets an invitation, and withdraws this atSign's acceptance of it if there is one.
Declining before accepting tells the inviter nothing, so they never learn this atSign. After accepting, the inviter may already have seen the acceptance, or decided on it.
Implementation
Future<void> decline(String id) async {
final sent = await acceptances;
for (final acceptance in await _readable(sent, owner: me)) {
if (acceptance.obj.invitationId == id) await sent.delete(acceptance);
}
final invitation = await (await receivedInvitations).getOrNull(id, me);
if (invitation != null) {
await (await receivedInvitations).delete(invitation);
}
}