diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-03-31 14:54:45 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-03-31 14:54:45 +0200 |
commit | 9fa77720e18b493e2199ed0d0f74a15126bf719e (patch) | |
tree | 6999e73875afba13eeb28cd829831c26ab7365a8 /src/main/java/de/pixart/messenger/services | |
parent | da205a2ebf79641ce3c14dba3c2ecf3c671a403b (diff) |
add ability to delete account also from server
fixes #315
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index caea57fc8..90b2784a5 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -2354,6 +2354,11 @@ public class XmppConnectionService extends Service { }); } + public void deleteAccountFromServer(final Account account) { + account.getXmppConnection().sendDeleteRequest(); + deleteAccount(account); + } + public void deleteAccount(final Account account) { synchronized (this.conversations) { for (final Conversation conversation : conversations) { |