code quality

This commit is contained in:
Valere 2023-10-02 15:31:11 +02:00
parent df82eee736
commit a6b127cb20
2 changed files with 11 additions and 31 deletions

View file

@ -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");
* you may not use this file except in compliance with the License.

View file

@ -785,26 +785,6 @@ internal class RustCryptoService @Inject constructor(
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.
*