mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-25 06:15:35 +00:00
Don't download media files in daemon mode if download_media is false.
This commit is contained in:
parent
f4d563226c
commit
78031b0ff2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user