diff options
author | Marvin W <git@larma.de> | 2020-01-09 13:21:54 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2020-01-09 13:21:54 +0100 |
commit | 8cca049e5ccd937595695e208c5b538d0d8b0ba2 (patch) | |
tree | 6c692b4b20170c8df926e324aa58eefc4a50c007 /plugins/http-files/src/file_provider.vala | |
parent | b1bbb9f5872fc89cd8fa402bc5b8127dc7dea45b (diff) | |
download | dino-8cca049e5ccd937595695e208c5b538d0d8b0ba2.tar.gz dino-8cca049e5ccd937595695e208c5b538d0d8b0ba2.zip |
Fix file receival in groupchat pmsx
Diffstat (limited to 'plugins/http-files/src/file_provider.vala')
-rw-r--r-- | plugins/http-files/src/file_provider.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http-files/src/file_provider.vala b/plugins/http-files/src/file_provider.vala index a025e37b..715f3e62 100644 --- a/plugins/http-files/src/file_provider.vala +++ b/plugins/http-files/src/file_provider.vala @@ -110,7 +110,7 @@ public class FileProvider : Dino.FileProvider, Object { Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(file_transfer.counterpart.bare_jid, file_transfer.account); if (conversation == null) throw new FileReceiveError.GET_METADATA_FAILED("No conversation"); - Message? message = stream_interactor.get_module(MessageStorage.IDENTITY).get_message_by_id(int.parse(file_transfer.info), conversation); + Message? message = dino_db.get_message_by_id(int.parse(file_transfer.info)); if (message == null) throw new FileReceiveError.GET_METADATA_FAILED("No message"); var file_meta = new HttpFileMeta(); @@ -128,7 +128,7 @@ public class FileProvider : Dino.FileProvider, Object { Conversation? conversation = stream_interactor.get_module(ConversationManager.IDENTITY).get_conversation(file_transfer.counterpart.bare_jid, file_transfer.account); if (conversation == null) return null; - Message? message = stream_interactor.get_module(MessageStorage.IDENTITY).get_message_by_id(int.parse(file_transfer.info), conversation); + Message? message = dino_db.get_message_by_id(int.parse(file_transfer.info)); if (message == null) return null; var receive_data = new HttpFileReceiveData(); |