1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-23 01:06:17 +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 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}"
} }