Add category to Emoji data class

This commit is contained in:
fruye 2022-12-04 22:04:34 +01:00
parent dac4f36f33
commit 0f55cb0388
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,8 @@ data class Emoji(
val shortcode: String,
val url: String,
@SerializedName("static_url") val staticUrl: String,
@SerializedName("visible_in_picker") val visibleInPicker: Boolean?
@SerializedName("visible_in_picker") val visibleInPicker: Boolean?,
val category: String?,
) : Parcelable
data class EmojiReaction(

View File

@ -51,6 +51,6 @@ data class NotificationViewData(
fun makeCustomEmoji(): Emoji {
// Trim ':' characters to comply with CustomEmojiHelper rules.
val shortcode: String = emoji!!.substring(1, emoji.length - 1)
return Emoji(shortcode, emojiUrl!!, emojiUrl, false)
return Emoji(shortcode, emojiUrl!!, emojiUrl, false, null)
}
}