Skip to content

Commit

Permalink
release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed Mar 21, 2022
1 parent ed36127 commit 203185f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "mstickereditor"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
license = "Apache-2.0"
description= "import sticker packs from telegram, to be used at the Maunium sticker picker for Matrix"
Expand Down
18 changes: 10 additions & 8 deletions src/sub_commands/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,16 @@ fn import_pack(pack: &String, config: &Config, opt: &Opt) -> anyhow::Result<()>
pb.finish();

// write new entries into the database
if let Some(ref mut db) = database {
for sticker in &stickers {
let hash_url = HashUrl {
hash: sticker.file_hash,
url: sticker.mxc_url.clone()
};
writeln!(db, "{}", serde_json::to_string(&hash_url)?)?;
// TODO write into database_tree
if !opt.noupload {
if let Some(ref mut db) = database {
for sticker in &stickers {
let hash_url = HashUrl {
hash: sticker.file_hash,
url: sticker.mxc_url.clone()
};
writeln!(db, "{}", serde_json::to_string(&hash_url)?)?;
// TODO write into database_tree
}
}
}

Expand Down

0 comments on commit 203185f

Please sign in to comment.