etesync / libetebase

The C client-side library
BSD 3-Clause "New" or "Revised" License
29 stars 9 forks source link

etebase_invitation_manager_reject wrongfully invokes accept #8

Closed Skycoder42 closed 1 year ago

Skycoder42 commented 1 year ago

Currently, the etebase_invitation_manager_reject method actually invokes this.accept - which is the opposite of what it should do. (See https://github.com/etesync/libetebase/blob/master/src/lib.rs#L2032).

#[no_mangle]
pub unsafe extern fn etebase_invitation_manager_reject(this: &CollectionInvitationManager, invitation: &SignedInvitation) -> i32 {
    try_or_int!(this.accept(invitation)); // should be this.reject(invitation)
    0
}