Skip to content

Commit

Permalink
prob nots
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzikas committed Jun 21, 2021
1 parent 2637f7e commit 4708da7
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 11 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/SideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function SideBar({ video, littleVideo, isInRoomRoute }) {
if (window.jitsiNodeAPI) {
let count = sortedCount + dmChannelCount
window.jitsiNodeAPI.ipc.send('set-counter', { count })
window.jitsiNodeAPI.ipc.sendSync('update-badge', 111);
// window.jitsiNodeAPI.ipc.send('update-badge', 111);

}
console.log(window)
Expand Down
19 changes: 16 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ const {
nativeImage, Tray
} = require('electron');

const Badge = require('electron-windows-badge');
// const Badge = require('electron-windows-badge');

const appId = 'electron-windows-notifications'
const { ToastNotification } = require('electron-windows-notifications')

let notification = new ToastNotification({
appId: appId,
template: `<toast><visual><binding template="ToastText01"><text id="1">%s</text></binding></visual></toast>`,
strings: ['Hi!']
})

notification.on('activated', () => console.log('Activated!'))
notification.show()



// const { app, BrowserWindow, Menu, nativeImage, Tray } = require('electron')
Expand Down Expand Up @@ -196,7 +209,7 @@ function createJitsiMeetWindow() {
defaultHeight: 600
});

new Badge(windowState, { color: 'red' });
// new Badge(windowState, { color: 'red' });
// Path to root directory.
const basePath = isDev ? __dirname : app.getAppPath();

Expand Down Expand Up @@ -286,7 +299,7 @@ function createJitsiMeetWindow() {
}
app.setBadgeCount(app.getBadgeCount() + 1)
sound.play(path.join(__dirname, "resources/cowbell.wav"))
new Badge(windowState, { color: 'blue' });
// new Badge(windowState, { color: 'blue' });

//New Room
console.log(path.join(__dirname), 'souuuuunnnndd')
Expand Down
112 changes: 107 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CowBellClub",
"version": "1.4.6",
"version": "1.4.7",
"description": "Electron application for Cowbell Club",
"main": "./build/main.js",
"productName": "CowbellClub",
Expand Down Expand Up @@ -139,7 +139,7 @@
"electron-store": "5.1.1",
"electron-updater": "4.2.5",
"electron-window-state": "5.0.3",
"electron-windows-badge": "^1.1.0",
"electron-windows-notifications": "^3.0.8",
"history": "4.10.1",
"i18next": "19.4.5",
"jitsi-meet-electron-utils": "github:jitsi/jitsi-meet-electron-utils#v2.0.13",
Expand Down

0 comments on commit 4708da7

Please sign in to comment.