Skip to content

Commit

Permalink
feed data flow
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalbuddha committed Dec 21, 2022
1 parent 08cbaae commit 78dcdb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ data class Status(
@SerialName("sensitive") val sensitive: Boolean,
@SerialName("spoiler_text") val spoilerText: String,
@SerialName("media_attachments") val mediaAttachments: List<Attachment>,
@SerialName("application") val application: Application,
@SerialName("application") val application: Application?=null,

// rendering attributes
@SerialName("mentions") val mentions: List<Mention>? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ data class Tag(
@SerialName("url") val url: String,

// optional attributes
@SerialName("history") val history: List<History>,
@SerialName("history") val history: List<History>?= emptyList(),
)
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ val timelineRepoModule: Module = module {
.selectHomeItems()
.asFlow()
.mapToList().map {
it.ifEmpty { throw Exception("Empty list") }
it.ifEmpty { return@map null }
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ org-xerial = "3.8.10.2"
io-insert-koin = "3.2.0"
com-russhwolf = "1.0.0-RC"
kotlinx-serialization = "1.4.0"
store = "5.0.0-alpha02"
store = "0.0.1"
io-github-aakira = "2.6.1"

[libraries]
Expand Down

0 comments on commit 78dcdb2

Please sign in to comment.