mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Do delete user account
This commit is contained in:
@ -147,4 +147,13 @@ class AccountHelper {
|
||||
await APIRequest(uri: "account/disconnect_all_devices", needLogin: true)
|
||||
.execWithThrow();
|
||||
}
|
||||
|
||||
/// Remove permanently a user account
|
||||
///
|
||||
/// Throws in case of failure
|
||||
static Future<void> deleteAccount(String password) async {
|
||||
await APIRequest(uri: "account/delete", needLogin: true)
|
||||
.addString("password", password)
|
||||
.execWithThrow();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user