* Fixed the issue where the window doesn't remember the last window state
* Fixed issue with unsnapping windows on switching server on Windows
* Fix tests
* Make ExtraBar dark when using dark mode
* Update ExtraBar to use colors from MainBar in dark mode
* Update the colour
---------
Co-authored-by: zoltan-ofir <45757556+zoltan-ofir@users.noreply.github.com>
* Rename MattermostTeam -> UniqueServer, MattermostTab -> UniqueView
* Rename 'team' to 'server'
* Some further cleanup
* Rename weirdly named function
* Rename 'tab' to 'view' in most instances
* Fix i18n
* PR feedback
* Rework tray into a class, make click behaviour consistent
* Fix issue where app wouldn't switch to workspace where the app was visible
* Fixed an issue where the app would show the window with hideOnStart enabled
* Add comment about StatusIconLinuxDbus
* Fix tests
* Fix bad handler on resize for Linux
* Fix maximize/minimize issue again
* Fix macOS rapid resizing issue
* Make sure #2638 is still fixed
* Still don't need this
* Added comment and fixed test
* [MM-52139] Force user to reset default downloads directory when the app is not allowed to access it
* Fix a bug where a different download location choice would cause a problem
* Missed i18n
* [MM-52380] Fix unhandled rejection when clearing app cache
* Make sure the window is loaded first
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Move sendToRenderer to respective singletons
* Move to using ViewManager call for getting view by webContentsId
* Move show and create logic to main window, handle deep linking seperately
* Move resizing logic and event handing to mainWindow
* Move server switching logic to main/app
* Move tab switching logic to main/app, rely on showById for most usage
* Migrate remaining functions, remove windowManager objects, set up imports for self-contained singletons
* Fix E2E tests
* Update src/main/app/servers.ts
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
---------
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Migrate app to ServerManager, remove view names and replace with IDs
* Fixed a test
* Fixed a bug when adding the initial server
* Merge'd
* Bug fixes and PR feedback
* Implement ServerManager, introduce id concept for identifying servers/views
* REVERT ME (eventually): Move back to old logging
* PR feedback
* PR feedback
* Revert "REVERT ME (eventually): Move back to old logging"
This reverts commit 46954a5bbed4dd29e89ca9d5217bb75af2837bb3.
* Merge'd
* Use the correct method for Logger in ServerManager
* Create central logging module for adding prefixes to differentiate logs between modules
* Turn logger into class
* Merge'd
* Rework to use class more intelligently
* Fix modalView
* Fix webContentEvents
* Update src/main/app/intercom.ts
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* Shorten prefixes on object creation
---------
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* Migrate loadingScreen to singleton
* REVERT ME when MainWindow singleton changes are merged
* Revert "REVERT ME when MainWindow singleton changes are merged"
This reverts commit 2de5520117b9aefb8eeb161d493de7cb275f7a5b.
* add will-redirect handler to prevent unrestricted redirect
* import ordering
* simplify onWillRedirect handler; tests
* Adding punctuation to force tests to run again.
On Linux machines that are using a desktop env which conforms to
the FreeDesktop spec, users should have the XDG_DOWNLOAD_DIR
variable set to specify their default download directory.
This patch ensures that this directory is used if the variable is
present.
Hoping this will fix the following issue in the Mattermost snap:
https://github.com/snapcrafters/mattermost-desktop/issues/65
* Harden Calls windows URL navigation checks
* Update src/main/windows/callsWidgetWindow.ts
Co-authored-by: Eva Sarafianou <eva.sarafianou@gmail.com>
* Fix bad merge
* Extract team name to use isUrlType
* Simplify
---------
Co-authored-by: Eva Sarafianou <eva.sarafianou@gmail.com>
* [MM-50527] Explicitly allow the Mattermost views access to write to the clipboard using Copy Link
* Include calls widget window
* Add calls popout to the list as well
* Update src/main/app/initialize.ts
Co-authored-by: Christopher Poile <cpoile@gmail.com>
---------
Co-authored-by: Christopher Poile <cpoile@gmail.com>
* [MM-50712] Fix local prototype pollution flaw
* Update src/main/diagnostics/steps/internal/loggerHooks.test.js
Co-authored-by: Daniel Espino García <larkox@gmail.com>
---------
Co-authored-by: Daniel Espino García <larkox@gmail.com>
* Migrate intl_provider to contextBridge
* Migrate modalPreload to contextBridge
* Migrate loadingScreenPreload to contextBridge
* Migrate downloadDropdown preloads to contextBridge
* Migrate server dropdown preload to contextBridge
* Migrate urlView preload to contextBridge
* Merge all desktop API scripts into one
* Remove unused communication channel constants
* [MM-44004] Optionally turn off UTF-8 encoding for winreg if the system doesn't support it
* Fix tests
* REVERT ME: Enable msi installer
* REVERT ME: Wait for msi
* Toggle between winreg and winreg-utf8 if the latter doesn't work
* Revert MSI stuff
* Added logging for the catch at the end to see what error is occurring there
* Catch the error on registry creation as well
* Update logging a bit further
Co-authored-by: Mattermost Build <build@mattermost.com>
* Add some logging, refactor setting config items
* Move active team to setMultiple, reduce serverInfos calls if the data is already the same
* Fix some logging
* Lint fix