fix: random crash when joining a channel for the first time

Fixes #8848

I'm not 100% sure why the issue is fixed by this, but I was able to pin point the source with a bisect and by running the Squish test for public chats over and over.
This commit is contained in:
Jonathan Rainville 2022-12-19 16:33:48 -05:00
parent 3f2f732698
commit 821b7f2571
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ StatusWindow {
Connections {
id: windowsOsNotificationsConnection
enabled: Qt.platform.os === Constants.windows
target: typeof mainModule !== "undefined" ? mainModule : null
target: Qt.platform.os === Constants.windows && typeof mainModule !== "undefined" ? mainModule : null
function onDisplayWindowsOsNotification(title, message) {
systemTray.showMessage(title, message)
}