Bug fix on profile placeholder handling
This commit is contained in:
1 parent
810a690776
commit
149f704d1c
3 files changed
+3
-2
No files matched your search
@@ -379,7 +379,7 @@ abstract class NostrDao(
|
|||||||
|
|
||||||
if (profile == null) {
|
if (profile == null) {
|
||||||
val placeHolderProfile = Profile(
|
val placeHolderProfile = Profile(
|
||||||
publicKey = nostrEvent.pubKey,
|
publicKey = followedHexKEys,
|
||||||
createdAt = GENESIS_AT,
|
createdAt = GENESIS_AT,
|
||||||
nostrEventId = nostrEvent.id, // Will get overwriting by sync,
|
nostrEventId = nostrEvent.id, // Will get overwriting by sync,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import ac.cord.auxiliary.compose.database.model.intermdiate.LocalProfileWithFoll
|
|||||||
import ac.cord.auxiliary.compose.database.model.intermdiate.LocalProfileWithFollowing
|
import ac.cord.auxiliary.compose.database.model.intermdiate.LocalProfileWithFollowing
|
||||||
import androidx.room.Dao
|
import androidx.room.Dao
|
||||||
import androidx.room.Insert
|
import androidx.room.Insert
|
||||||
|
import androidx.room.OnConflictStrategy.Companion.IGNORE
|
||||||
import androidx.room.Query
|
import androidx.room.Query
|
||||||
import androidx.room.Upsert
|
import androidx.room.Upsert
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ object Relays {
|
|||||||
val nostr1 = RelayUrlNormalizer.normalize("wss://profiles.nostr1.com")
|
val nostr1 = RelayUrlNormalizer.normalize("wss://profiles.nostr1.com")
|
||||||
|
|
||||||
val bootstrapInboxRelaySet = setOf(damus, primal, mom, nos, bitcoiner, oxtr, yabu)
|
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)
|
val eventPublishRelaySet = setOf(primal, mom, nos, bitcoiner, oxtr)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user