Imports User's banners from Damus

This commit is contained in:
Vitor Pamplona
2023-01-15 16:13:49 -05:00
parent 4026ae03e7
commit 933731215c
2 changed files with 2 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ object LocalCache {
val author = getOrCreateUser(event.pubKey)
val recipient = event.recipientPubKey?.let { getOrCreateUser(it) }
Log.d("PM", "${author.toBestDisplayName()} to ${recipient?.toBestDisplayName()}")
//Log.d("PM", "${author.toBestDisplayName()} to ${recipient?.toBestDisplayName()}")
val repliesTo = event.tags.filter { it.firstOrNull() == "e" }.mapNotNull { it.getOrNull(1) }.map { getOrCreateNote(it) }.toMutableList()
val mentions = event.tags.filter { it.firstOrNull() == "p" }.mapNotNull { it.getOrNull(1) }.map { getOrCreateUser(decodePublicKey(it)) }

View File

@@ -100,6 +100,7 @@ class UserMetadata {
var display_name: String? = null
var displayName: String? = null
var picture: String? = null
var banner: String? = null
var website: String? = null
var about: String? = null
var nip05: String? = null