mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
More Kotlinification.
This commit is contained in:
parent
191b2fe05a
commit
9832d429b0
@ -50,13 +50,7 @@ class DocumentFileManager(msg: TLMessage, user: UserManager, client: TelegramCli
|
|||||||
get() {
|
get() {
|
||||||
var sticker: TLDocumentAttributeSticker? = null
|
var sticker: TLDocumentAttributeSticker? = null
|
||||||
if (this.isEmpty || doc == null) return false
|
if (this.isEmpty || doc == null) return false
|
||||||
if (doc!!.getAttributes() != null)
|
return doc!!.getAttributes()?.filter{it is TLDocumentAttributeSticker}.isNotEmpty()
|
||||||
for (attr in doc!!.getAttributes()) {
|
|
||||||
if (attr is TLDocumentAttributeSticker) {
|
|
||||||
sticker = attr as TLDocumentAttributeSticker
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return sticker != null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val size: Int
|
val size: Int
|
||||||
|
Loading…
Reference in New Issue
Block a user