Bug fix on profile placeholder handling

This commit is contained in:
Kgothatso Ngako
2026-04-22 03:29:39 +02:00
parent 810a690776
commit 149f704d1c
3 changed files with 3 additions and 2 deletions

View File

@@ -379,7 +379,7 @@ abstract class NostrDao(
if (profile == null) {
val placeHolderProfile = Profile(
publicKey = nostrEvent.pubKey,
publicKey = followedHexKEys,
createdAt = GENESIS_AT,
nostrEventId = nostrEvent.id, // Will get overwriting by sync,
)

View File

@@ -6,6 +6,7 @@ import ac.cord.auxiliary.compose.database.model.intermdiate.LocalProfileWithFoll
import ac.cord.auxiliary.compose.database.model.intermdiate.LocalProfileWithFollowing
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.Companion.IGNORE
import androidx.room.Query
import androidx.room.Upsert

View File

@@ -34,7 +34,7 @@ object Relays {
val nostr1 = RelayUrlNormalizer.normalize("wss://profiles.nostr1.com")
val bootstrapInboxRelaySet = setOf(damus, primal, mom, nos, bitcoiner, oxtr, yabu)
val eventFinderRelaySet = setOf(primal, wine, damus, mom, nos, bitcoiner, oxtr)
val eventFinderRelaySet = setOf(wine, damus, mom, primal, nos, bitcoiner, oxtr)
val eventPublishRelaySet = setOf(primal, mom, nos, bitcoiner, oxtr)