Skip to content

Commit

Permalink
Use all messages when updating partial metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Sep 23, 2024
1 parent 9f1d346 commit e38c9e2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions data/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ pub async fn append(
messages: Vec<Message>,
read_marker: Option<ReadMarker>,
) -> Result<(), Error> {
if messages.is_empty() {
return metadata::save(server, kind, &messages, read_marker).await;
}

let loaded = load(server.clone(), kind.clone()).await?;

let mut all_messages = loaded.messages;
Expand Down

0 comments on commit e38c9e2

Please sign in to comment.