mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 15:04:37 +00:00
Fix file receival in groupchat pmsx
This commit is contained in:
parent
b1bbb9f587
commit
8cca049e5c
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue