mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +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)
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user