mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 19:06:34 +02:00
Small refactoring
This commit is contained in:
@@ -551,8 +551,7 @@ private fun BoostWithDialog(
|
||||
val forkEvent = baseNote.event
|
||||
val replyTo =
|
||||
if (forkEvent is BaseThreadedEvent) {
|
||||
val hex = forkEvent.replyingTo()
|
||||
baseNote.replyTo?.filter { it.event?.id == hex }?.firstOrNull()
|
||||
baseNote.replyTo?.firstOrNull { it.event?.id == forkEvent.replyingTo() }
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
Reference in New Issue
Block a user