docs(indexeddb): add license to event_cache_store::types file

Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
Michael Goldenberg
2025-06-12 13:58:36 -04:00
committed by Ivan Enderlin
parent fd17c28ebb
commit ec30e7b85c
2 changed files with 20 additions and 0 deletions

View File

@@ -173,6 +173,12 @@ pub enum IndexedNextChunkIdKey {
Some(IndexedChunkIdKey),
}
impl IndexedNextChunkIdKey {
pub fn none(room_id: IndexedRoomId) -> Self {
Self::None((room_id,))
}
}
impl IndexedKey<Chunk> for IndexedNextChunkIdKey {
type KeyComponents = Option<ChunkIdentifier>;

View File

@@ -1,3 +1,17 @@
// Copyright 2025 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License
use matrix_sdk_base::{
deserialized_responses::TimelineEvent, event_cache::store::extract_event_relation,
linked_chunk::ChunkIdentifier,