1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-12-24 22:15:33 +00:00

Fix intendation

This commit is contained in:
Hannes 2018-05-13 13:00:48 +02:00
parent 9c1f495782
commit e2c2e5c3ed
No known key found for this signature in database
GPG Key ID: 0DEE6AD1C8EDBD87

View File

@ -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}"
}