mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 03:18:04 +01:00
Add plumbing for deleting accounts and all associated data.
This commit is contained in:
committed by
Jon Chambers
parent
789af0f8a6
commit
61f515670c
@@ -70,6 +70,10 @@ public class DirectoryQueue {
|
||||
sendMessage(account.isEnabled() && account.isDiscoverableByPhoneNumber() ? "add" : "delete", account.getUuid(), account.getNumber());
|
||||
}
|
||||
|
||||
public void deleteAccount(final Account account) {
|
||||
sendMessage("delete", account.getUuid(), account.getNumber());
|
||||
}
|
||||
|
||||
private void sendMessage(String action, UUID uuid, String number) {
|
||||
final Map<String, MessageAttributeValue> messageAttributes = new HashMap<>();
|
||||
messageAttributes.put("id", new MessageAttributeValue().withDataType("String").withStringValue(number));
|
||||
|
||||
Reference in New Issue
Block a user