Removing shadowed variable
This commit is contained in:
@@ -276,8 +276,8 @@ private fun AuthorPictureAndComment(
|
|||||||
(zapRequest.event as? LnZapRequestEvent)?.let {
|
(zapRequest.event as? LnZapRequestEvent)?.let {
|
||||||
val decryptedContent = accountViewModel.decryptZap(zapRequest)
|
val decryptedContent = accountViewModel.decryptZap(zapRequest)
|
||||||
if (decryptedContent != null) {
|
if (decryptedContent != null) {
|
||||||
val author = LocalCache.getOrCreateUser(decryptedContent.pubKey)
|
val newAuthor = LocalCache.getOrCreateUser(decryptedContent.pubKey)
|
||||||
content = Pair(author, decryptedContent.content)
|
content = Pair(newAuthor, decryptedContent.content)
|
||||||
} else {
|
} else {
|
||||||
if (!zapRequest.event?.content().isNullOrBlank()) {
|
if (!zapRequest.event?.content().isNullOrBlank()) {
|
||||||
content = Pair(author, zapRequest.event?.content())
|
content = Pair(author, zapRequest.event?.content())
|
||||||
|
|||||||
Reference in New Issue
Block a user