diff options
author | fiaxh <git@lightrise.org> | 2021-02-17 11:22:19 -0600 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-02-17 15:25:55 -0600 |
commit | 80c8e18cea4f243ffa7caa921f8bf6d9baca01bd (patch) | |
tree | 5ec9cd032e0d899d6b99fa3340bb636d5d6c1b80 /libdino/src/service/file_manager.vala | |
parent | 0626bad8e9c2f7dfd4d8eccc86ec1e8bec6c7308 (diff) | |
download | dino-80c8e18cea4f243ffa7caa921f8bf6d9baca01bd.tar.gz dino-80c8e18cea4f243ffa7caa921f8bf6d9baca01bd.zip |
Add cache for file transfers
Diffstat (limited to 'libdino/src/service/file_manager.vala')
-rw-r--r-- | libdino/src/service/file_manager.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/file_manager.vala b/libdino/src/service/file_manager.vala index f3256601..19d51b44 100644 --- a/libdino/src/service/file_manager.vala +++ b/libdino/src/service/file_manager.vala @@ -69,7 +69,7 @@ public class FileManager : StreamInteractionModule, Object { yield save_file(file_transfer); - file_transfer.persist(db); + stream_interactor.get_module(FileTransferStorage.IDENTITY).add_file(file_transfer); conversation.last_active = file_transfer.time; received_file(file_transfer, conversation); } catch (Error e) { @@ -281,7 +281,7 @@ public class FileManager : StreamInteractionModule, Object { } } - file_transfer.persist(db); + stream_interactor.get_module(FileTransferStorage.IDENTITY).add_file(file_transfer); if (is_sender_trustworthy(file_transfer, conversation)) { try { |