A cheap attempt at a native Bluesky client for Android

Models: i hate kotlin when it behaves like this

+15 -10
+15 -10
app/src/main/java/industries/geesawra/monarch/datalayer/Models.kt
··· 126 126 val (parent, _) = sd.parent() 127 127 val root = sd.root() 128 128 129 - if (parent == null) { 130 - false 131 - } 129 + parent?.let { 130 + val parentFollowing = parent.following 131 + val rootFollowing = root?.following ?: false 132 132 133 - val parentFollowing = parent?.following ?: false 134 - val rootFollowing = root?.following ?: false 133 + val res = parentFollowing || rootFollowing 134 + !res 135 + } 135 136 136 - val res = parentFollowing || rootFollowing 137 - !res 137 + false 138 138 } 139 139 } 140 140 }() ··· 215 215 ) 216 216 } 217 217 218 + // Record need to be hydrated before being rendered! 218 219 219 - // is PostEmbedUnion.Record -> PostViewEmbedUnion.RecordView( 220 - // RecordView(post.embed.value.record) 221 - // ) 220 + // is PostEmbedUnion.Record -> { 221 + // val c = (post.embed as PostEmbedUnion.Record).value 222 + // 223 + // PostViewEmbedUnion.RecordView( 224 + // RecordView(post.embed.value.record) 225 + // ) 226 + // } 222 227 // 223 228 // is PostEmbedUnion.RecordWithMedia -> PostViewEmbedUnion.RecordWithMediaView( 224 229 // RecordWithMediaView(