Open and request sync on UnqueuedProfileSynchronizationScreen.ktd

This commit is contained in:
Kgothatso Ngako
2026-03-29 23:21:46 +02:00
parent 3f889fa02b
commit 6696e8d57b
4 changed files with 10 additions and 4 deletions

View File

@@ -184,7 +184,6 @@ class DatabaseNostrRepository(
database.nostrDao().storeNostrEvent(
nostrEvent,
synchronizeNostrEventRequest,
synchronizationRelayURLs = synchronizationRelayURLs
)

View File

@@ -135,6 +135,10 @@ interface NostrRepository {
) {
TODO("Not yet implemented")
}
override suspend fun queueSynchronizeNostrEvent(synchronizeNostrEventRequests: List<SynchronizeNostrEventRequest>) {
TODO("Not yet implemented")
}
}
}
}

View File

@@ -90,7 +90,8 @@ private fun UnqueuedProfileSynchronizationScreenPreview() {
modifier = Modifier.fillMaxSize()
) {
UnqueuedProfileSynchronizationScreen(
profilePublicKey = "npub is for living."
profilePublicKey = "npub is for living.",
nostrRepository = NostrRepository.NO_OP_NOSTR_REPOSITORY
)
}
}

View File

@@ -13,6 +13,7 @@ import ac.aux.compose.ui.composable.SocialPreconditionScreen
import ac.aux.compose.ui.composable.UnannouncedProfileScreen
import ac.aux.compose.ui.composable.UnindexedProfileScreen
import ac.aux.compose.ui.composable.UnqueuedProfileScreen
import ac.aux.compose.ui.composable.UnqueuedProfileSynchronizationScreen
import ac.aux.compose.ui.composable.UnsignedProfileScreen
import ac.aux.compose.ui.composable.UnsyncedProfileScreen
import ac.aux.compose.ui.composable.WriteNewNoteScreen
@@ -253,8 +254,9 @@ fun AuxNavHost(
}
composable<UnqueuedProfileSynchronizationRoute> { backStackEntry ->
val route = backStackEntry.toRoute<UnqueuedProfileSynchronizationRoute>()
UnqueuedProfileSynchronizationRoute(
publicKey = route.publicKey
UnqueuedProfileSynchronizationScreen(
profilePublicKey = route.publicKey,
nostrRepository = nostrRepository
)
}
composable<UnindexedProfileRoute> {