Open and request sync on UnqueuedProfileSynchronizationScreen.ktd

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

No files matched your search

@@ -184,7 +184,6 @@ class DatabaseNostrRepository(
database.nostrDao().storeNostrEvent( database.nostrDao().storeNostrEvent(
nostrEvent, nostrEvent,
synchronizeNostrEventRequest,
synchronizationRelayURLs = synchronizationRelayURLs synchronizationRelayURLs = synchronizationRelayURLs
) )
@@ -135,6 +135,10 @@ interface NostrRepository {
) { ) {
TODO("Not yet implemented") TODO("Not yet implemented")
} }
override suspend fun queueSynchronizeNostrEvent(synchronizeNostrEventRequests: List<SynchronizeNostrEventRequest>) {
TODO("Not yet implemented")
}
} }
} }
} }
@@ -90,7 +90,8 @@ private fun UnqueuedProfileSynchronizationScreenPreview() {
modifier = Modifier.fillMaxSize() modifier = Modifier.fillMaxSize()
) { ) {
UnqueuedProfileSynchronizationScreen( UnqueuedProfileSynchronizationScreen(
profilePublicKey = "npub is for living." profilePublicKey = "npub is for living.",
nostrRepository = NostrRepository.NO_OP_NOSTR_REPOSITORY
) )
} }
} }
@@ -13,6 +13,7 @@ import ac.aux.compose.ui.composable.SocialPreconditionScreen
import ac.aux.compose.ui.composable.UnannouncedProfileScreen import ac.aux.compose.ui.composable.UnannouncedProfileScreen
import ac.aux.compose.ui.composable.UnindexedProfileScreen import ac.aux.compose.ui.composable.UnindexedProfileScreen
import ac.aux.compose.ui.composable.UnqueuedProfileScreen 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.UnsignedProfileScreen
import ac.aux.compose.ui.composable.UnsyncedProfileScreen import ac.aux.compose.ui.composable.UnsyncedProfileScreen
import ac.aux.compose.ui.composable.WriteNewNoteScreen import ac.aux.compose.ui.composable.WriteNewNoteScreen
@@ -253,8 +254,9 @@ fun AuxNavHost(
} }
composable<UnqueuedProfileSynchronizationRoute> { backStackEntry -> composable<UnqueuedProfileSynchronizationRoute> { backStackEntry ->
val route = backStackEntry.toRoute<UnqueuedProfileSynchronizationRoute>() val route = backStackEntry.toRoute<UnqueuedProfileSynchronizationRoute>()
UnqueuedProfileSynchronizationRoute( UnqueuedProfileSynchronizationScreen(
publicKey = route.publicKey profilePublicKey = route.publicKey,
nostrRepository = nostrRepository
) )
} }
composable<UnindexedProfileRoute> { composable<UnindexedProfileRoute> {