Skip to content

Commit 9d8477c

Browse files
committed
Set message embed w/h to Float
1 parent 474eee9 commit 9d8477c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/java/com/troplo/privateuploader/components/chat/Message.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ fun MessagePreview() {
255255
data = EmbedData(
256256
type = "image",
257257
description = "yes",
258-
height = 69,
258+
height = 69f,
259259
siteName = "TPU",
260260
title = "TPU",
261261
upload = null,
262262
url = "https://i.troplo.com",
263-
width = 420
263+
width = 420f
264264
),
265265
type = "image",
266266
)

app/src/main/java/com/troplo/privateuploader/data/model/Message.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ data class EmbedData(
101101
val title: String?,
102102
val description: String?,
103103
val siteName: String?,
104-
val width: Int?,
105-
val height: Int?,
104+
val width: Float?,
105+
val height: Float?,
106106
val upload: Upload?,
107107
val type: String?,
108108
)

0 commit comments

Comments
 (0)