Skip to content

Commit fc2c993

Browse files
authored
Merge pull request #22 from VectorPrivacy/mls-chatrooms
Deep Rescan
2 parents 3c471e0 + 182a0a9 commit fc2c993

4 files changed

Lines changed: 105 additions & 718 deletions

File tree

src-tauri/src/chat.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -244,32 +244,6 @@ impl ChatMetadata {
244244
}
245245
}
246246

247-
// Database structures for persistence
248-
#[derive(Serialize, Deserialize, Clone, Debug)]
249-
pub struct SlimChat {
250-
pub id: String,
251-
pub chat_type: ChatType,
252-
pub participants: Vec<String>,
253-
pub last_read: String,
254-
pub created_at: u64,
255-
pub metadata: ChatMetadata,
256-
pub muted: bool,
257-
}
258-
259-
impl From<&Chat> for SlimChat {
260-
fn from(chat: &Chat) -> Self {
261-
SlimChat {
262-
id: chat.id.clone(),
263-
chat_type: chat.chat_type.clone(),
264-
participants: chat.participants.clone(),
265-
last_read: chat.last_read.clone(),
266-
created_at: chat.created_at,
267-
metadata: chat.metadata.clone(),
268-
muted: chat.muted,
269-
}
270-
}
271-
}
272-
273247
//// Marks a specific message as read for a chat.
274248
/// Behavior:
275249
/// - If message_id is Some(id): set chat.last_read = id.

0 commit comments

Comments
 (0)