File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
matrix-sdk-base/src/store
matrix-sdk/src/send_queue Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,6 @@ pub enum DependentQueuedRequestKind {
238
238
related_to : OwnedTransactionId ,
239
239
240
240
/// Whether the depended upon request was a thumbnail or a file upload.
241
- #[ cfg( feature = "unstable-msc4274" ) ]
242
241
#[ serde( default = "default_parent_is_thumbnail_upload" ) ]
243
242
parent_is_thumbnail_upload : bool ,
244
243
} ,
@@ -275,7 +274,6 @@ pub enum DependentQueuedRequestKind {
275
274
/// If parent_is_thumbnail_upload is missing, we assume the request is for a
276
275
/// file upload following a thumbnail upload. This was the only possible case
277
276
/// before parent_is_thumbnail_upload was introduced.
278
- #[ cfg( feature = "unstable-msc4274" ) ]
279
277
fn default_parent_is_thumbnail_upload ( ) -> bool {
280
278
true
281
279
}
Original file line number Diff line number Diff line change @@ -1467,7 +1467,6 @@ impl QueueStorage {
1467
1467
content_type : content_type. to_string ( ) ,
1468
1468
cache_key : file_media_request,
1469
1469
related_to : send_event_txn,
1470
- #[ cfg( feature = "unstable-msc4274" ) ]
1471
1470
parent_is_thumbnail_upload : true ,
1472
1471
} ,
1473
1472
)
@@ -1859,25 +1858,12 @@ impl QueueStorage {
1859
1858
content_type,
1860
1859
cache_key,
1861
1860
related_to,
1862
- #[ cfg( feature = "unstable-msc4274") ]
1863
1861
parent_is_thumbnail_upload,
1864
1862
} => {
1865
1863
let Some ( parent_key) = parent_key else {
1866
1864
// Not finished yet, we should retry later => false.
1867
1865
return Ok ( false ) ;
1868
1866
} ;
1869
- let parent_is_thumbnail_upload = {
1870
- cfg_if:: cfg_if! {
1871
- if #[ cfg( feature = "unstable-msc4274" ) ] {
1872
- parent_is_thumbnail_upload
1873
- } else {
1874
- // Before parent_is_thumbnail_upload was introduced, the only
1875
- // possible usage for this request was a file upload following
1876
- // a thumbnail upload.
1877
- true
1878
- }
1879
- }
1880
- } ;
1881
1867
self . handle_dependent_file_or_thumbnail_upload (
1882
1868
client,
1883
1869
dependent_request. own_transaction_id . into ( ) ,
You can’t perform that action at this time.
0 commit comments