Wait for the radio before removing a contact, and explain re-adds

removeContact now waits for the radio's reply and only drops the contact
locally when the radio confirms (or reports it doesn't have it), so a
lost command no longer leaves a contact that the next sync restores.
Failures are shown to the user. The delete dialog warns when the radio
auto-adds that contact type, since the contact returns on its next
advert.
This commit is contained in:
zjs81 committed 2026-10-24 21:03:39 -07:00
1 parent 1e786b24ba
commit f2a27f0f71
28 files changed
+352 -10

No files matched your search

+2
View File
@@ -608,6 +608,8 @@
},
"contacts_keepChatHistory": "Keep chat history",
"contacts_remove": "Remove",
"contacts_removeAutoAddNote": "Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.",
"contacts_removeFailed": "The radio did not confirm the removal. The contact was not removed.",
"contacts_discoveredNearby": "Discovered nearby ({count})",
"@contacts_discoveredNearby": {
"placeholders": {
+12
View File
@@ -2314,6 +2314,18 @@ abstract class AppLocalizations {
/// **'Remove'**
String get contacts_remove;
/// No description provided for @contacts_removeAutoAddNote.
///
/// In en, this message translates to:
/// **'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.'**
String get contacts_removeAutoAddNote;
/// No description provided for @contacts_removeFailed.
///
/// In en, this message translates to:
/// **'The radio did not confirm the removal. The contact was not removed.'**
String get contacts_removeFailed;
/// No description provided for @contacts_discoveredNearby.
///
/// In en, this message translates to:
+8
View File
@@ -1290,6 +1290,14 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get contacts_remove => 'Премахни';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Открити наблизо ($count)';
+8
View File
@@ -1285,6 +1285,14 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get contacts_remove => 'Entfernen';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'In der Nähe entdeckt ($count)';
+8
View File
@@ -1267,6 +1267,14 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get contacts_remove => 'Remove';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Discovered nearby ($count)';
+8
View File
@@ -1282,6 +1282,14 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get contacts_remove => 'Eliminar';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Descubiertos cercanos ($count)';
+8
View File
@@ -1288,6 +1288,14 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get contacts_remove => 'Supprimer';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Découverts à proximité ($count)';
+8
View File
@@ -1278,6 +1278,14 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get contacts_remove => 'Eltávolítás';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Közelben felfedezve ($count)';
+8
View File
@@ -1287,6 +1287,14 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get contacts_remove => 'Rimuovi';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Scoperti nelle vicinanze ($count)';
+8
View File
@@ -1215,6 +1215,14 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get contacts_remove => '削除';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return '近くで発見された連絡先($count)';
+8
View File
@@ -1220,6 +1220,14 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get contacts_remove => '제거';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return '주변에서 발견됨($count)';
+8
View File
@@ -1277,6 +1277,14 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get contacts_remove => 'Verwijderen';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'In de buurt ontdekt ($count)';
+8
View File
@@ -1301,6 +1301,14 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get contacts_remove => 'Usuń';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Odkryte w pobliżu ($count)';
+8
View File
@@ -1286,6 +1286,14 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get contacts_remove => 'Remover';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Descobertos nas proximidades ($count)';
+8
View File
@@ -1290,6 +1290,14 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get contacts_remove => 'Убрать';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Обнаружены поблизости ($count)';
+8
View File
@@ -1277,6 +1277,14 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get contacts_remove => 'Odstrániť';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Objavené v blízkosti ($count)';
+8
View File
@@ -1277,6 +1277,14 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get contacts_remove => 'Odstrani';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Odkriti v bližini ($count)';
+8
View File
@@ -1267,6 +1267,14 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get contacts_remove => 'Ta bort';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Upptäckt i närheten ($count)';
+8
View File
@@ -1281,6 +1281,14 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get contacts_remove => 'Прибрати';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return 'Виявлені поблизу ($count)';
+8
View File
@@ -1197,6 +1197,14 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get contacts_remove => '移除';
@override
String get contacts_removeAutoAddNote =>
'Your radio auto-adds this contact type, so it will come back the next time it advertises. Turn off auto-add in Contacts settings to keep it removed.';
@override
String get contacts_removeFailed =>
'The radio did not confirm the removal. The contact was not removed.';
@override
String contacts_discoveredNearby(int count) {
return '附近发现的($count)';