Desktop: Don't blink the Mattermost menu bar icon continuously when one of the servers is disconnected

Created on 27 Nov 2017  路  8Comments  路  Source: mattermost/desktop


Jira ticket: https://mattermost.atlassian.net/browse/MM-14091

Summary
I would like to be able to disable a server when running the application. This would mean Mattermost client will not try to connect to this server.

If I have two servers configured and one of them is not available (eg: because it is a local server and I am not on it's network), the indicator will blink trying to connect to the server again and again.

Steps to reproduce

  • Operating System: Ubuntu 16.04
  • Mattermost Desktop App version: 3.7.1
  • Mattermost Server version: 4.3.0 (dev-arm-tag4.3.0)

How to reproduce

  • Install Mattermost on 2 local servers
  • Configure the Mattermost servers on your desktop client
  • Disconnect / stop one of the servers
  • Launch Mattermost desktop client and look at the indicator blinking when Mattermost tries to connect to the un-available server.

Expected behavior
The client should only try to connect to servers enabled in the servers list (the enable/disable option does not exist yet)

Observed behavior
The client tries to connect to all servers resulting in the indicator flashing if one of them (or more) is not available.

Possible fixes
No idea

Help Wanted Linux TypBug Up For Grabs

All 8 comments

Thanks @VictorLamoine for the report!

Can you share a screenshot of the indicator you're describing?

resulting in the indicator flashing if one of them (or more) is not available.

@jasonblais I will do a GIF tomorrow!

Closed by mistake!
capture video 2017-11-30 10_07_28

@VictorLamoine If we stopped the blinking, would that cover your issue? Might be simpler than offering the ability to disable/enable servers

I guess it blinks because the application is trying to connect to the server periodically in the background (I might be wrong).

If it just stopped blinking the problem would be solved, it's happening at ~1Hz so the "connecting" function probably has a very small CPU footprint.

Thoughts @yuya-oc? Would it be feasible to stop the blinking in this case?

Probably yes. The blinking happens at about 1Hz, so I guess it's related to unread count rather than reconnecting (it happens every 30 seconds). Probably there is the case where the icon is refreshed even when no count changes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zetaab picture zetaab  路  5Comments

mcfedr picture mcfedr  路  3Comments

attzonko picture attzonko  路  5Comments

fmp777 picture fmp777  路  6Comments

mcarthur-cpt picture mcarthur-cpt  路  6Comments