-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Disable message notifications from active chatrooms #2021
base: master
Are you sure you want to change the base?
Disable message notifications from active chatrooms #2021
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thanks for this PR! |
I have yet to include the AFK portion, I will submit it soon |
3e1e63c
to
6f1f43e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had a look at the existing implementation and found that we already have PREF_NOTIFY_ROOM_CURRENT
resp. PREF_NOTIFY_CHAT_CURRENT
. Did you try enabling those before making these changes?
The main difference is then the check for the idle time, which should happen inside prefs_do_room_notify()
resp. prefs_do_chat_notify()
and the time should maybe be configurable? (CC @jubalh) The ChatState
is only for 1on1 chats, so we can't use that.
Makes sense :) |
Currently Profanity sends notifications even if you are focused on the same chat window as the recipient message.
It should account for whenever profanity is the focused window or not.
See #1987 .