* [MM-45780] Update to macos-notification-state 3.0, update entitlements and provisioning profile to allow Communication Notification access
* Remove extra entitlements
* Add proper inherit
* Add constants for app info, add to API
* Migrate history button
* Converted calls API over to context bridge, removed some unnecessary logging
* Convert to TS, add types for web app to consume
* Fix tests, prune
* Fix lint
* More changes to support the legacy API
* Force legacy code off, add support for unreads/mentions/expired through the API
* Fix issues with cross-tab login, removed need for log in/log out signalling
* Fixed test, typos
* Change package name for types
* Add some other stuff to the types
* PR feedback
* More feedback
* Use npm package
* Change types and API to provide off listeners
* Version number
* Lock
* Fix typo
* Add sessionID for calls
* Remove expliced category from deb
The expliced category value for deb is not correct. The linux section
has a correct category value and deb is part of its target. So the
category from linux should be applied if there is no expliced one in the
deb section.
Issue: mattermost/desktop#2874
* Linux README: clarify where to find directory
Change the example directory to the path, where it is at a deb
installation. Add a hint that a reader in a local README already
found the correct directory.
Issue: mattermost/desktop#2874
* 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>