Desktop: Desktop client opens to blank white Window when using GPO-set teams

Description

Original report: https://github.com/mattermost/desktop/issues/1224

Summary
Mattermost opens to white window when only a GPO-defined team is configured.

Environment
Operating System: Windows 10 Pro x64 1903
Mattermost Desktop App version: 4.4.0
Mattermost Server version: 5.16.0

Steps to reproduce
1. Install Mattermost 4.4
2. Configure GPO to define a default team
3. Open Mattermost from being fully closed

Expected behavior
Mattermost loads the default team where you last left off (worked as intended in 4.3.2)

Observed behavior
Mattermost opens to a white window with the option to select the relevant team. Once you click on the correct team name, it seems to load up just fine and run like "normal" (ie, just like 4.3.2 did).

Logs

index_bundle.js:20096 Uncaught TypeError: Cannot read property 'focusOnWebView' of undefined
at focusListener (index_bundle.js:20096)
at CallbacksRegistry.apply (C:\Program Files\Mattermost\Desktop\resources\electron.asar\renderer\callbacks-registry.js:41)
at C:\Program Files\Mattermost\Desktop\resources\electron.asar\renderer\api\remote.js:281
at EventEmitter. (C:\Program Files\Mattermost\Desktop\resources\electron.asar\renderer\api\remote.js:271)
at EventEmitter.emit (events.js:200)
at Object.onMessage (C:\Program Files\Mattermost\Desktop\resources\electron.asar\renderer\init.js:42)
index_bundle.js:41154 [NAME] websocket connecting to ws://FQDN/api/v4/websocket
(anonymous) @ index_bundle.js:41154
index_bundle.js:1900 Uncaught TypeError: Cannot read property 'focusOnWebView' of undefined
at index_bundle.js:19896
at Object.da (index_bundle.js:1723)
at ka (index_bundle.js:1743)
at la (index_bundle.js:1747)
at xa (index_bundle.js:1812)
at Ba (index_bundle.js:1839)
at za (index_bundle.js:1830)
at Ea (index_bundle.js:1900)
at Gd (index_bundle.js:3339)
at Nh (index_bundle.js:6954)
index_bundle.js:19896 Uncaught TypeError: Cannot read property 'focusOnWebView' of undefined
at MainPage.focusOnWebView (index_bundle.js:19896)
at EventEmitter. (index_bundle.js:20247)
at EventEmitter.emit (events.js:200)
at Object.onMessage (C:\Program Files\Mattermost\Desktop\resources\electron.asar\renderer\init.js:42)

QA Test Steps

see description

Activity

Show:
Ogi Marusic
April 15, 2020, 7:55 PM

Tested and passed, working as expected on 4.4.1-rc1
Labelled the PR. Closing.

Guillermo Vayá
April 3, 2020, 7:49 AM

removed my PR in favor of the cotntributor one:

Guillermo Vayá
March 23, 2020, 1:44 PM

there is a possible related case when using defaultConfig.js file with servers there. for repro you need more than 1 server configured and not having the order field.

Done
Your pinned fields
Click on the next to a field label to start pinning.

Mana

2

Assignee

Guillermo Vayá

QA Assignee

Ogi Marusic

Reporter

Amy Blais

Fix versions

Mattermost Team

Core Features

QA Testing Areas

Other (write in QA test steps)

Components