chore: bump version

This commit is contained in:
reya
2024-08-08 10:09:11 +07:00
parent f3f806e3cf
commit 3c36db162f
5 changed files with 68 additions and 64 deletions

View File

@@ -324,16 +324,18 @@ pub async fn login(
println!("[emit] error: {}", e)
}
if let Some(window) = handle.get_webview_window("main") {
if !window.is_focused().unwrap() {
if let Err(e) = handle
.notification()
.builder()
.body("You have a new message")
.title("Coop")
.show()
{
println!("[notification] error: {}", e);
if sender != public_key {
if let Some(window) = handle.get_webview_window("main") {
if !window.is_focused().unwrap() {
if let Err(e) = handle
.notification()
.builder()
.body("You have a new message")
.title("Coop")
.show()
{
println!("[notification] error: {}", e);
}
}
}
}