mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
code quality
This commit is contained in:
parent
df82eee736
commit
a6b127cb20
2 changed files with 11 additions and 31 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2023 New Vector Ltd
|
* Copyright 2023 The Matrix.org Foundation C.I.C.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -785,26 +785,6 @@ internal class RustCryptoService @Inject constructor(
|
||||||
return cryptoStore.getLiveBlockUnverifiedDevices(roomId)
|
return cryptoStore.getLiveBlockUnverifiedDevices(roomId)
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Manages the room black-listing for unverified devices.
|
|
||||||
// *
|
|
||||||
// * @param roomId the room id
|
|
||||||
// * @param add true to add the room id to the list, false to remove it.
|
|
||||||
// */
|
|
||||||
// private fun setRoomBlacklistUnverifiedDevices(roomId: String, add: Boolean) {
|
|
||||||
// val roomIds = cryptoStore.getRoomsListBlacklistUnverifiedDevices().toMutableList()
|
|
||||||
//
|
|
||||||
// if (add) {
|
|
||||||
// if (roomId !in roomIds) {
|
|
||||||
// roomIds.add(roomId)
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// roomIds.remove(roomId)
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// cryptoStore.setRoomsListBlacklistUnverifiedDevices(roomIds)
|
|
||||||
// }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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