mirror of
https://github.com/element-hq/element-android
synced 2024-12-21 00:42:04 +03:00
crypto: Remove the cancelRoomKeyRequest method
This commit is contained in:
parent
67f238069a
commit
758e8f7fb6
2 changed files with 2 additions and 13 deletions
|
@ -94,8 +94,6 @@ interface CryptoService {
|
||||||
|
|
||||||
fun reRequestRoomKeyForEvent(event: Event)
|
fun reRequestRoomKeyForEvent(event: Event)
|
||||||
|
|
||||||
fun cancelRoomKeyRequest(requestBody: RoomKeyRequestBody)
|
|
||||||
|
|
||||||
fun addRoomKeysRequestListener(listener: GossipingRequestListener)
|
fun addRoomKeysRequestListener(listener: GossipingRequestListener)
|
||||||
|
|
||||||
fun removeRoomKeysRequestListener(listener: GossipingRequestListener)
|
fun removeRoomKeysRequestListener(listener: GossipingRequestListener)
|
||||||
|
|
|
@ -154,6 +154,7 @@ internal class DefaultCryptoService @Inject constructor(
|
||||||
|
|
||||||
private val crossSigningService: DefaultCrossSigningService,
|
private val crossSigningService: DefaultCrossSigningService,
|
||||||
// Actions
|
// Actions
|
||||||
|
private val setDeviceVerificationAction: SetDeviceVerificationAction,
|
||||||
private val megolmSessionDataImporter: MegolmSessionDataImporter,
|
private val megolmSessionDataImporter: MegolmSessionDataImporter,
|
||||||
private val warnOnUnknownDevicesRepository: WarnOnUnknownDeviceRepository,
|
private val warnOnUnknownDevicesRepository: WarnOnUnknownDeviceRepository,
|
||||||
// Repository
|
// Repository
|
||||||
|
@ -524,7 +525,7 @@ internal class DefaultCryptoService @Inject constructor(
|
||||||
* @param deviceId the unique identifier for the device.
|
* @param deviceId the unique identifier for the device.
|
||||||
*/
|
*/
|
||||||
override fun setDeviceVerification(trustLevel: DeviceTrustLevel, userId: String, deviceId: String) {
|
override fun setDeviceVerification(trustLevel: DeviceTrustLevel, userId: String, deviceId: String) {
|
||||||
// TODO
|
setDeviceVerificationAction.handle(trustLevel, userId, deviceId)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1092,16 +1093,6 @@ internal class DefaultCryptoService @Inject constructor(
|
||||||
setRoomBlacklistUnverifiedDevices(roomId, false)
|
setRoomBlacklistUnverifiedDevices(roomId, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Check if this method is still necessary
|
|
||||||
/**
|
|
||||||
* Cancel any earlier room key request
|
|
||||||
*
|
|
||||||
* @param requestBody requestBody
|
|
||||||
*/
|
|
||||||
override fun cancelRoomKeyRequest(requestBody: RoomKeyRequestBody) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Re request the encryption keys required to decrypt an event.
|
* Re request the encryption keys required to decrypt an event.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue