mirror of
https://gitlab.com/schmiddi-on-mobile/flare.git
synced 2026-10-29 15:07:47 -04:00
fix(notification): Fix sometimes no notification sent
This happened when the application was running in the background, and only for the last active channel. Fixes #203.
This commit is contained in:
1 parent
df48d35ad4
commit
239f3d6afb
2 files changed
+9
-3
No files matched your search
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixes
|
||||
|
||||
- No notifications being sent when Flare is in the background for the last active channel.
|
||||
|
||||
## [0.14.3] - 2024-04-20
|
||||
|
||||
### Fixes
|
||||
|
||||
+5
-3
@@ -391,9 +391,11 @@ pub mod imp {
|
||||
|
||||
fn setup_active_window_handler(&self) {
|
||||
let obj = self.obj();
|
||||
obj.connect_is_active_notify(clone!(
|
||||
@weak self as w => move |window| {
|
||||
w.channel_list.set_active(window.is_active())
|
||||
obj.connect_is_active_notify(clone!(@weak self as w => move |window| {
|
||||
w.channel_list.set_active(window.is_active() && window.is_visible())
|
||||
}));
|
||||
obj.connect_visible_notify(clone!(@weak self as w => move |window| {
|
||||
w.channel_list.set_active(window.is_active() && window.is_visible())
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user