mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 16:56:16 +00:00
Fix intendation
This commit is contained in:
parent
9c1f495782
commit
e2c2e5c3ed
@ -63,11 +63,12 @@ class StickerFileManager(message: JsonObject, file_base: String) : DocumentFileM
|
|||||||
|
|
||||||
private val filenameBase: String
|
private val filenameBase: String
|
||||||
get() {
|
get() {
|
||||||
val stickerSet = sticker["stickerset"].obj
|
val stickerSet = sticker["stickerset"].obj
|
||||||
val set = stickerSet.get("shortName").nullString
|
val set = stickerSet.get("shortName").nullString
|
||||||
?: stickerSet.get("id").nullString
|
?: stickerSet.get("id").nullString
|
||||||
?: stickerSet.get("_constructor").nullString
|
?: stickerSet.get("_constructor").nullString
|
||||||
?: error("could not get a good name from: ${sticker["stickerset"]}")
|
?: error("could not get a good name from: ${sticker["stickerset"]}")
|
||||||
|
|
||||||
val hash = sticker["alt"].string.hashCode()
|
val hash = sticker["alt"].string.hashCode()
|
||||||
return "${set}_${hash}"
|
return "${set}_${hash}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user