logger.warn("Failed to updated pre keys: {}", e.getMessage());
}
}
+ }
+
+ public void cleanOldPreKeys() {
+ cleanOldPreKeys(ServiceIdType.ACI);
+ cleanOldPreKeys(ServiceIdType.PNI);
+ }
- cleanSignedPreKeys((serviceIdType));
+ private void cleanOldPreKeys(final ServiceIdType serviceIdType) {
+ cleanSignedPreKeys(serviceIdType);
cleanOneTimePreKeys(serviceIdType);
}