Skip to content

Commit

Permalink
Update device capabilities (#353)
Browse files Browse the repository at this point in the history
This fixes a 409 error received when linking devices.
Fixes #352.
  • Loading branch information
Schmiddiii authored Jan 30, 2025
1 parent 19c0c78 commit 43aa16f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/push_service/linking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ pub struct LinkAccountAttributes {
pub struct LinkCapabilities {
pub delete_sync: bool,
pub versioned_expiration_timer: bool,
/// It is currently unclear what this field is.
///
/// Signal Server refers to the field as `STORAGE_SERVICE_RECORD_KEY_ROTATION` [here](https://github.com/signalapp/Signal-Server/blob/5cc76f48aa4028f5001a51409a3a0e4e6ce2d7f2/service/src/main/java/org/whispersystems/textsecuregcm/storage/DeviceCapability.java#L15).
/// Signal Android refers to the field as `storageServiceEncryptionV2` [here](https://github.com/signalapp/Signal-Android/blob/ec840726fcbb5440e1337274f791d17a6fe59598/libsignal-service/src/main/java/org/whispersystems/signalservice/api/account/AccountAttributes.kt#L60).
/// It is therefore possibly related to backup
pub ssre2: bool,
}

// https://github.com/signalapp/Signal-Desktop/blob/1e57db6aa4786dcddc944349e4894333ac2ffc9e/ts/textsecure/WebAPI.ts#L1287
Expand All @@ -32,6 +38,7 @@ impl Default for LinkCapabilities {
Self {
delete_sync: true,
versioned_expiration_timer: true,
ssre2: true,
}
}
}
Expand Down

0 comments on commit 43aa16f

Please sign in to comment.