More registration and quit related improvements

This commit is contained in:
Juha Heinanen
2022-06-19 18:42:42 +03:00
parent efbe5331e3
commit d8943fae05
5 changed files with 31 additions and 14 deletions
@@ -642,10 +642,12 @@ class AccountActivity : AppCompatActivity() {
if (save) {
AccountsActivity.saveAccounts()
if (newRegint == 0)
Api.ua_unregister(ua.uap)
else if (acc.regint != 0)
Api.ua_register(ua.uap)
if (newRegint != -1) {
if (newRegint == 0)
Api.ua_unregister(ua.uap)
else
Api.ua_register(ua.uap)
}
}
BaresipService.activities.remove("account,$aor")