declineInvite method
override
Declines the invite with the given id
.
Implementation
@override
Future<void> declineInvite(String token, int id) async {
log('Declining invite $id');
try {
await _apiService.callFunction(
function: 'local_lbplanner_plan_decline_invite',
token: token,
body: {
'inviteid': id,
},
);
log('Invite $id declined');
} catch (e, s) {
log('Failed to decline invite $id', e, s);
rethrow;
}
}