Compare commits

..

No commits in common. "ca263b50d2a0d38c33c31fd6161bd966361051b8" and "a3eeb38e5f8b8ebc0cdd193b823c1a4804830133" have entirely different histories.

3 changed files with 3 additions and 4 deletions

2
Cargo.lock generated
View file

@ -1466,7 +1466,7 @@ dependencies = [
[[package]] [[package]]
name = "mostr" name = "mostr"
version = "0.7.0" version = "0.6.3"
dependencies = [ dependencies = [
"chrono", "chrono",
"chrono-english", "chrono-english",

View file

@ -5,7 +5,7 @@ repository = "https://forge.ftt.gmbh/janek/mostr"
readme = "README.md" readme = "README.md"
license = "GPL 3.0" license = "GPL 3.0"
authors = ["melonion"] authors = ["melonion"]
version = "0.7.0" version = "0.6.3"
rust-version = "1.82" rust-version = "1.82"
edition = "2021" edition = "2021"
default-run = "mostr" default-run = "mostr"

View file

@ -509,7 +509,7 @@ impl TasksRelay {
fn filter(&self, task: &Task) -> bool { fn filter(&self, task: &Task) -> bool {
self.state.matches(task) && self.state.matches(task) &&
(!task.is_task() || self.pubkey.is_none_or(|p| p == task.get_owner())) && (!task.is_task() || self.pubkey.is_none_or(|p| p == task.event.pubkey)) &&
self.priority.is_none_or(|prio| { self.priority.is_none_or(|prio| {
task.priority().unwrap_or(DEFAULT_PRIO) >= prio task.priority().unwrap_or(DEFAULT_PRIO) >= prio
}) && }) &&
@ -712,7 +712,6 @@ impl TasksRelay {
pub(crate) fn reset_key_filter(&mut self) { pub(crate) fn reset_key_filter(&mut self) {
let own = self.sender.pubkey(); let own = self.sender.pubkey();
if self.pubkey.is_some_and(|k| k == own) { if self.pubkey.is_some_and(|k| k == own) {
self.view.clear();
info!("Showing everybody's tasks"); info!("Showing everybody's tasks");
self.pubkey = None self.pubkey = None
} else { } else {