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