Refactor SnodeApi

This commit is contained in:
bemusementpark
2024-08-03 02:46:42 +09:30
parent b93ec3be04
commit 482f169df1
3 changed files with 268 additions and 463 deletions

View File

@@ -63,7 +63,6 @@ data class ConfigurationSyncJob(val destination: Destination): Job {
// return a list of batch request objects
val snodeMessage = MessageSender.buildConfigMessageToSnode(destination.destinationPublicKey(), message)
val authenticated = SnodeAPI.buildAuthenticatedStoreBatchInfo(
destination.destinationPublicKey(),
config.configNamespace(),
snodeMessage
) ?: return@map null // this entry will be null otherwise