Fix crash with null lastStatus in Conversations (#1042)
This commit is contained in:
parent
fe1e9f4100
commit
fdc66288b1
3 changed files with 6 additions and 5 deletions
|
@ -20,6 +20,6 @@ import com.google.gson.annotations.SerializedName
|
|||
data class Conversation(
|
||||
val id: String,
|
||||
val accounts: List<Account>,
|
||||
@SerializedName("last_status") val lastStatus: Status,
|
||||
@SerializedName("last_status") val lastStatus: Status?, // should never be null, but apparently its possible https://github.com/tuskyapp/Tusky/issues/1038
|
||||
val unread: Boolean
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue