Skip to content

Commit

Permalink
fix: avoid forcing content-type to be Link, when editing an link
Browse files Browse the repository at this point in the history
close #76
  • Loading branch information
cablehead committed Jun 13, 2024
1 parent 701034a commit 221eb46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ pub fn store_edit_note(
state.merge(&packet);

if let Some(hash) = packet.hash {
if meta.content_type != "Text" {
// todo: which types can be auto-detected should be consolidated
if !matches!(meta.content_type.as_str(), "Text" | "Link") {
let packet = state.store.update_content_type(hash, meta.content_type);
state.merge(&packet);
}
Expand Down

0 comments on commit 221eb46

Please sign in to comment.