From e2c2e5c3ed9e8177aa3c9edf93a45cf7cce3d3f1 Mon Sep 17 00:00:00 2001 From: Hannes Date: Sun, 13 May 2018 13:00:48 +0200 Subject: [PATCH] Fix intendation --- .../mediafilemanager/StickerFileManager.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/StickerFileManager.kt b/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/StickerFileManager.kt index 0f85ad2..028bb39 100644 --- a/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/StickerFileManager.kt +++ b/src/main/kotlin/de/fabianonline/telegram_backup/mediafilemanager/StickerFileManager.kt @@ -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}" }