From e9f37b5c26392f1876020a70bc43bf698cff80c4 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Wed, 9 Oct 2019 14:36:41 +0300 Subject: [PATCH] - When account is deleted, delete also account's call and chat history. --- app/src/main/kotlin/com/tutpro/baresip/AccountListAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountListAdapter.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountListAdapter.kt index d61f4d24..e68efb70 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/AccountListAdapter.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/AccountListAdapter.kt @@ -42,6 +42,8 @@ class AccountListAdapter(private val cxt: Context, private val rows: ArrayList Api.ua_destroy(ua.uap) + CallHistory.clear(ua.account.aor) + Message.clear(ua.account.aor) UserAgent.remove(ua) AccountsActivity.generateAccounts() AccountsActivity.saveAccounts()