Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications has confusing behaviour #109

Closed
infinity0 opened this issue Nov 24, 2015 · 3 comments
Closed

Notifications has confusing behaviour #109

infinity0 opened this issue Nov 24, 2015 · 3 comments

Comments

@infinity0
Copy link
Contributor

Currently, notifications fire when:

  • a message is received from a contact (all of whose previous messages I've seen)
  • I select a contact whose has sent me some messages I haven't seen

Notifications are not fired when:

  • a message is received from a contact, where an older notification was already fired previously, and I haven't read that older message yet.

This is a bit unintuitive. Notifications should be fired for each message received, and not when I go to read that message.

It would also be good to detect if the current X window is not active, and send notifications in this case too (even if the contact is selected, which would normally suppress a notification).

@hannesm
Copy link
Owner

hannesm commented Nov 25, 2015

(sorry, in transit) -- the last point, doing sth with X - is what I will definitively not implement. what I personally use is a bell character, and the terminal sets the urgency flag on the window (thus, the window manager notifies this).

@infinity0
Copy link
Contributor Author

OK, no worries about the X thing, I'm now using this instead: https://gist.github.com/infinity0/5d04337ef2457d31628d

Looks like it's fairly easy for notification_callback to distinguish between "new message" and "all messages read" because notification.state transitions between "connected_notifications" vs "connected". However, it would be nice if each new message fires notification_callback as well. (You could just re-write/touch notification.state with the same contents i.e. "connected_notifications", which would work with the above wrapper scripts too.)

@hannesm
Copy link
Owner

hannesm commented Nov 26, 2015

thanks for the report, I think I fixed this in 9d76f38...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants