Skip to content

Commit

Permalink
Merge pull request #502
Browse files Browse the repository at this point in the history
修复 `ResourceImage` 无法序列化的问题
  • Loading branch information
ForliyScarlet authored Nov 12, 2022
2 parents 5cce8aa + 9acb1ed commit ff025d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public interface Image<E : Image<E>> : StandardMessage<E>, IDContainer, Resource
*
*/
@SerialName("m.std.img.resource")
@Serializable
public data class ResourceImage(override val id: ID, @SerialName("resource") private val _resource: Resource) :
Image<ResourceImage> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public sealed interface Messages : List<MsgElement<*>>, RandomAccess, Message {
subclass(AtAll.serializer())
subclass(Emoji.serializer())
subclass(Face.serializer())
subclass(ResourceImage.serializer())
}
}

Expand Down

0 comments on commit ff025d0

Please sign in to comment.