feat: enhance map navigation and waypoint handling (#4814)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-03-16 08:48:00 -05:00 committed by GitHub
parent 802aa09aab
commit 5edb8abd05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 95 additions and 16 deletions

View file

@ -78,7 +78,8 @@ fun AdaptiveContactsScreen(
// Check if we navigated here from another screen (e.g., from Nodes or Map)
val previousKey = if (backStack.size > 1) backStack[backStack.size - 2] else null
val isFromDifferentGraph =
previousKey !is ContactsRoutes.ContactsGraph &&
previousKey != null &&
previousKey !is ContactsRoutes.ContactsGraph &&
previousKey !is ContactsRoutes.Contacts &&
previousKey !is ContactsRoutes.Messages

View file

@ -151,6 +151,12 @@ class MessageViewModel(
}
}
fun setContactKey(contactKey: String) {
if (contactKeyForPagedMessages.value != contactKey) {
contactKeyForPagedMessages.value = contactKey
}
}
fun setTitle(title: String) {
viewModelScope.launch { _title.value = title }
}