replace animation to be sure that it will be correctly invoked in case of document availability

This commit is contained in:
InsanusMokrassar committed 2019-06-28 19:05:40 +08:00
1 parent 46a4e7ea27
commit 26d001acce
1 file changed
+6 -6
@@ -107,6 +107,12 @@ data class RawMessage(
caption,
adaptedCaptionEntities
)
animation != null -> AnimationContent(
animation,
document,
caption,
adaptedCaptionEntities
)
document != null -> DocumentContent(
document,
caption,
@@ -122,12 +128,6 @@ data class RawMessage(
caption,
adaptedCaptionEntities
)
animation != null -> AnimationContent(
animation,
document,
caption,
adaptedCaptionEntities
)
sticker != null -> StickerContent(sticker)
game != null -> GameContent(game)
video_note != null -> VideoNoteContent(video_note)