mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 06:08:05 +01:00
Add support for deleting keys associated with an account.
This commit is contained in:
committed by
Jon Chambers
parent
86fae58c96
commit
789af0f8a6
@@ -106,6 +106,16 @@ public class Keys {
|
||||
}));
|
||||
}
|
||||
|
||||
public void delete(final String number) {
|
||||
database.use(jdbi -> jdbi.useHandle(handle -> {
|
||||
try (Timer.Context ignored = getCountTimer.time()) {
|
||||
handle.createUpdate("DELETE FROM keys WHERE number = :number")
|
||||
.bind("number", number)
|
||||
.execute();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
public void vacuum() {
|
||||
database.use(jdbi -> jdbi.useHandle(handle -> {
|
||||
try (Timer.Context ignored = vacuumTimer.time()) {
|
||||
|
||||
Reference in New Issue
Block a user