tangled
alpha
login
or
join now
geesawra.industries
/
jerry-no
8
fork
atom
A cheap attempt at a native Bluesky client for Android
8
fork
atom
overview
issues
pulls
pipelines
Models: i hate kotlin when it behaves like this
geesawra.industries
5 months ago
0b38eced
9cc6931b
+15
-10
1 changed file
expand all
collapse all
unified
split
app
src
main
java
industries
geesawra
monarch
datalayer
Models.kt
+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
129
-
if (parent == null) {
130
130
-
false
131
131
-
}
129
129
+
parent?.let {
130
130
+
val parentFollowing = parent.following
131
131
+
val rootFollowing = root?.following ?: false
132
132
133
133
-
val parentFollowing = parent?.following ?: false
134
134
-
val rootFollowing = root?.following ?: false
133
133
+
val res = parentFollowing || rootFollowing
134
134
+
!res
135
135
+
}
135
136
136
136
-
val res = parentFollowing || rootFollowing
137
137
-
!res
137
137
+
false
138
138
}
139
139
}
140
140
}()
···
215
215
)
216
216
}
217
217
218
218
+
// Record need to be hydrated before being rendered!
218
219
219
219
-
// is PostEmbedUnion.Record -> PostViewEmbedUnion.RecordView(
220
220
-
// RecordView(post.embed.value.record)
221
221
-
// )
220
220
+
// is PostEmbedUnion.Record -> {
221
221
+
// val c = (post.embed as PostEmbedUnion.Record).value
222
222
+
//
223
223
+
// PostViewEmbedUnion.RecordView(
224
224
+
// RecordView(post.embed.value.record)
225
225
+
// )
226
226
+
// }
222
227
//
223
228
// is PostEmbedUnion.RecordWithMedia -> PostViewEmbedUnion.RecordWithMediaView(
224
229
// RecordWithMediaView(