Add default values for the channel fields without existing defaults.

This commit is contained in:
Isira Seneviratne 2023-01-22 17:05:06 +05:30
parent e96f36f277
commit 5d3e54852d
2 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,11 @@ import kotlinx.serialization.Serializable
@Serializable
data class Channel(
val id: String,
val name: String,
val avatarUrl: String,
val id: String? = null,
val name: String? = null,
val avatarUrl: String? = null,
val bannerUrl: String? = null,
val description: String,
val description: String = "",
val nextpage: String? = null,
val subscriberCount: Long = 0,
val verified: Boolean = false,

View File

@ -142,7 +142,7 @@ class ChannelFragment : BaseFragment() {
binding.channelShare.setOnClickListener {
val shareDialog = ShareDialog(
response.id.toID(),
response.id!!.toID(),
ShareObjectType.CHANNEL,
shareData
)