-
Notifications
You must be signed in to change notification settings - Fork 849
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
Reload tabs when the computer resumes #495
Conversation
@yuya-oc tested on Windows 10 After waking computer from sleep, each tab begins to reload However, it seems the reloading process takes a really long time -- the page doesn't actually appear until I refresh the tab. Reproduced on the pre-release server and one of our test servers. I attached some console errors that might be relevant |
Thanks for catching! I missed that because badges was correctly updated. I'm not sure the reason why this problem happens, but it's fixed by applying Electron's notes for webview on my Mac. Originally I worked on this at another branch though, I added it to this PR. |
Hmm...interesting. But I'm not sure. Perhaps it's too early to reload even when the computer is online in resuming. And unfortunately I found another problem on my Windows 10 desktop. The reloading fails due to Just curious, does mattermost/mattermost#5120 make sense for the original problem of #461? |
Yeah, mattermost/mattermost#5120 is related -- however the PR was included in Mattermost 3.6, and some people reported missing messages on that server. However, we just had another PR merged (mattermost/mattermost#5907), which adds a sequence number to WebSocket connections and events -- that sequence is used to determine if any events were missed and run reconnect logic to get that missed data. So I can check on Monday whether that PR would be sufficient to cover #461 |
@yuya-oc chatted with Joram - although mattermost/mattermost#5907 won't be the perfect solution for resolving missing messages, it might be enough for this purpose. So propose keeping this PR as |
@jasonblais Okay. But the patch for webview seems necessary, so I will apply only it later. |
Thanks @yuya-oc, sounds good |
@jasonblais I agree. Thanks for feedback. |
Before submitting, please confirm you've
npm run lint:js
for proper code formattingPlease provide the following information:
Summary
Reload tabs when the computer resumes.
If the computer is offline when resuming from sleep, the app doesn't reload any tabs to keep their contents.
Issue link
#461
Test Cases
Tested on macOS 10.12.3
Case 1:
Case 2:
Additional Notes
https://circleci.com/gh/yuya-oc/desktop/200#artifacts