Update last_activity before received_file signal to keep UI in sync (#811)
Fixes #791 where a signal to update the UI is sent to late when sending files, resulting in an out of sync conversations list.
This commit is contained in:
parent
fcad6720e6
commit
2419bf3b15
|
@ -63,6 +63,7 @@ public class FileManager : StreamInteractionModule, Object {
|
|||
yield save_file(file_transfer);
|
||||
|
||||
file_transfer.persist(db);
|
||||
conversation.last_active = file_transfer.time;
|
||||
received_file(file_transfer, conversation);
|
||||
} catch (Error e) {
|
||||
file_transfer.state = FileTransfer.State.FAILED;
|
||||
|
@ -113,7 +114,6 @@ public class FileManager : StreamInteractionModule, Object {
|
|||
|
||||
yield file_sender.send_file(conversation, file_transfer, file_send_data, file_meta);
|
||||
|
||||
conversation.last_active = file_transfer.time;
|
||||
} catch (Error e) {
|
||||
warning("Send file error: %s", e.message);
|
||||
file_transfer.state = FileTransfer.State.FAILED;
|
||||
|
|
Loading…
Reference in a new issue