cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
381 stars 41 forks source link

Notifications are misbehaving #108

Open samsapti opened 1 year ago

samsapti commented 1 year ago

Describe the bug

Desktop notifications don't appear when (1) the room in question is in focus, but (2) the Cinny app window isn't in focus. This is the case for all types of rooms, including one-on-one chats. They do appear if the window is still in focus, but the room isn't.

Reproduction

  1. Open a room in Cinny
  2. Make sure notifications for mentions are set to "On" or "Noisy"
  3. Unfocus the window (switch to another window/workspace) while leaving the room open in the app
  4. Receive a message mentioning your @username
  5. Observe notifications not showing

Skip step 1 to "fix" the bug.

Expected behavior

Notifications should appear even when the room is open in the app, as long as the window isn't in focus.

Platform and versions

1. OS: Artix Linux
2. Cinny version: 2.2.2
3. Matrix homeserver: matrix.data.coop
4. Downloaded from: AUR (as cinny-desktop-bin)

Additional context

I'm using Sway with Wayland. Switching either window or workspace results in the same behavior.

Amirust commented 1 year ago

Same on windows 11

Cinny version: 2.2.4
Matrix homeserver: matrix.org
Downloaded from releases (installer)
imh1kiko commented 1 year ago

Still an issue, Win 10. V2.2.6, homeserver: matrix.org, downloaded also from releases.

Alliegaytor commented 11 months ago

Can confirm this is an issue with the latest version of Cinny using Arch Linux.

cinny-desktop 2.2.6-1

I'm on Hyprland(-git) and I leave Cinny open on a chat, but leave it in another workspace, and I just do not get notifications (even @ pings). It also stops my phone from getting notifications from that chat, and it marks the message as read. This has understandably caused a lot of confusion from people wondering why I instantly read messages yet never reply to them.

Good to know I'm not going crazy and it's just an issue with Cinny...

Alliegaytor commented 11 months ago

The dev branch had a commit which fixed the messages being read if the window was not focused, but the room selected. It didn't address the notification issue (this issue), but I fixed it and submitted a PR. Hopefully a new release will come soon to address these bugs :)