Skip to content

mainWindow: Avoid warning when no room was selected previously

Florian Müllner requested to merge wip/fmuellner/fix-js-warning into master

On startup we first load the previously joined rooms, then select the last selected one. However the setting for the latter may return an empty object (when there were no rooms to restore), resulting in a JS warning about accessing an undefined property.

Add a check to avoid that warning.

Merge request reports