in src/main/java/org/apache/sling/jcr/presence/internal/UserPresenter.java [126:136]
protected void deleted(@NotNull final String path, @NotNull final Set<String> added, @NotNull final Set<String> deleted, @NotNull final Set<String> changed, @NotNull final Map<String, String> properties, @NotNull final CommitInfo commitInfo) {
if (matches(properties)) {
try {
if (Objects.isNull(getUserById(userId))) {
unregisterUserPresence();
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
}
}