Open and request sync on UnqueuedProfileSynchronizationScreen.ktd
This commit is contained in:
@@ -184,7 +184,6 @@ class DatabaseNostrRepository(
|
||||
|
||||
database.nostrDao().storeNostrEvent(
|
||||
nostrEvent,
|
||||
synchronizeNostrEventRequest,
|
||||
synchronizationRelayURLs = synchronizationRelayURLs
|
||||
)
|
||||
|
||||
|
||||
@@ -135,6 +135,10 @@ interface NostrRepository {
|
||||
) {
|
||||
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()
|
||||
) {
|
||||
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.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> {
|
||||
|
||||
Reference in New Issue
Block a user