Don't download media files in daemon mode if download_media is false.

This commit is contained in:
Fabian Schlenz 2018-03-15 20:49:37 +01:00
parent f4d563226c
commit 78031b0ff2
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ internal class TelegramUpdateHandler : UpdateCallback {
vector.add(abs_msg)
db!!.saveMessages(vector, Kotlogram.API_LAYER)
System.out.print('.')
if (abs_msg is TLMessage) {
if (abs_msg is TLMessage && IniSettings.download_media==true) {
val fm = FileManagerFactory.getFileManager(abs_msg, user!!, client)
if (fm != null && !fm.isEmpty && !fm.downloaded) {
try {