File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1853,6 +1853,17 @@ impl Client {
1853
1853
& self ,
1854
1854
sync_settings : crate :: config:: SyncSettings < ' _ > ,
1855
1855
) -> Result < SyncResponse > {
1856
+ // The sync might not return for quite a while due to the timeout.
1857
+ // We'll see if there's anything crypto related to send out before we
1858
+ // sync, i.e. if we closed our client after a sync but before the
1859
+ // crypto requests were sent out.
1860
+ //
1861
+ // This will mostly be a no-op.
1862
+ #[ cfg( feature = "encryption" ) ]
1863
+ if let Err ( e) = self . send_outgoing_requests ( ) . await {
1864
+ error ! ( error =? e, "Error while sending outgoing E2EE requests" ) ;
1865
+ } ;
1866
+
1856
1867
let request = assign ! ( sync_events:: Request :: new( ) , {
1857
1868
filter: sync_settings. filter. as_ref( ) ,
1858
1869
since: sync_settings. token. as_deref( ) ,
You can’t perform that action at this time.
0 commit comments