mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +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
|
||||
get() {
|
||||
val stickerSet = sticker["stickerset"].obj
|
||||
val stickerSet = sticker["stickerset"].obj
|
||||
val set = stickerSet.get("shortName").nullString
|
||||
?: stickerSet.get("id").nullString
|
||||
?: stickerSet.get("_constructor").nullString
|
||||
?: error("could not get a good name from: ${sticker["stickerset"]}")
|
||||
?: stickerSet.get("id").nullString
|
||||
?: stickerSet.get("_constructor").nullString
|
||||
?: error("could not get a good name from: ${sticker["stickerset"]}")
|
||||
|
||||
val hash = sticker["alt"].string.hashCode()
|
||||
return "${set}_${hash}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user