mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
docs(indexeddb): add license to event_cache_store::types file
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
committed by
Ivan Enderlin
parent
fd17c28ebb
commit
ec30e7b85c
@@ -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>;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user