alert(_('The web client does not support accepting encrypted shared notebooks. Please switch to the desktop or mobile app before accepting the share.\n\nError: "%s"',error.message));
}else{
alert(_('Could not respond to the invitation. Please try again, or check with the notebook owner if they are still sharing it.\n\nThe error was: "%s"',error.message));
// This is to handle an edge case that can happen if:
//
// - The user is a recipient of a share.
// - The sender removes the recipient from the share, then add him again.
// - The recipient gets the invitation, but reply "Reject" to it.
//
// If we don't handle this case, it would kind of work but would create
// conflicts because the shared notes would be converted to local ones, then
// during sync the synchronizer would try to delete them. Since they've been
// changed, they'll all be marked as conflicts.
//
// So the simplest thing to do is to leave the folder, which is most likely
// what the user wants. And if not, it's always possible to ask the sender
// to share again.
//
// NOTE: DOESN'T WORK. Because Folder.updateAllShareIds() would still run
// and change the notes share_id property, thus creating conflicts again.
// Leaving it as it is for now, as it's an unlikely scenario and it won't
// cause any data loss.
if(!accept){
constexistingFolder=awaitFolder.load(folderId);
if(existingFolder){
logger.warn('Rejected an invitation, but the folder was already there. Conflicts are likely to happen. ShareUserId:',shareUserId,'Folder ID:',folderId);