1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-10-31 23:54:05 +00:00

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

View File

@ -140,7 +140,7 @@ internal class TelegramUpdateHandler : UpdateCallback {
vector.add(abs_msg) vector.add(abs_msg)
db!!.saveMessages(vector, Kotlogram.API_LAYER) db!!.saveMessages(vector, Kotlogram.API_LAYER)
System.out.print('.') 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) val fm = FileManagerFactory.getFileManager(abs_msg, user!!, client)
if (fm != null && !fm.isEmpty && !fm.downloaded) { if (fm != null && !fm.isEmpty && !fm.downloaded) {
try { try {