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

[FIX] Add additional condition for option "Show on unread" #1026

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

abicur
Copy link
Contributor

@abicur abicur commented Dec 3, 2018

Add additional condition for option "Show on unread" to show Rocket.Chat window

@RocketChat/electron

Closes #1003

The strange behavior of the function isFocused() or a bug in it.
After closing the application to tray (and no to click anywhere), the focus still remains in the application window (isFocused() return True). If client received a message in this moment then "show on unread" option is not working correctly (No window shown). In this case isFocused() returned True, but isVisible() returned False.
If after that we change focus manually (for example click anywhere or go to another window) then function isFocused() returned False (as expected) and isVisible() returned False too.
In order to solve this problem, added an additional condition that handles this situation and shows a window.

The described issue is displayed in this video.

@tassoevan tassoevan merged commit 092d390 into RocketChat:develop Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Windows 10 and 8 notification. Bug with option "Show on unread messages".
2 participants