Skip to content

Commit

Permalink
Fix #87 : notification of new messages in systray was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
squalou committed Dec 15, 2023
1 parent 721a628 commit 61ead18
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ An electron-base client for Google Hangouts Chat, since Google didn't see fit to

## CHANGELOG

### 5.27.22-4

Fix systray notification (favicon name changed on google side) see https://github.com/squalou/google-chat-linux/issues/87

### 5.27.22-3

Add a nice pseudo-protocol support : open gchat:// urls in client instead of browser. (requires configutaion in browsers)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ So, **to use electron's Wayland rendering** edit `/usr/share/applciations/google

See full [CHANGELOG](./CHANGELOG.md).

### 5.27.22-4

Fix systray notification (favicon name changed on google side) see https://github.com/squalou/google-chat-linux/issues/87

### 5.27.22-3

Add a nice pseudo-protocol support : open gchat:// urls in client instead of browser. See "Open Google Chat URLs from web browser in the app" above.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-chat-linux",
"version": "5.27.22-3",
"version": "5.27.22-4",
"description": "Unofficial alternative Google Chat desktop app",
"main": "src/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ const initializeTray = (windowObj) => {

ipcMain.on('favicon-changed', (evt, href) => {
var itype = "";
if (href.match(/favicon_chat_new_non_notif_r2/) ||
href.match(/favicon_chat_r2/)) {
if (href.match(/favicon_chat_new_non_notif_r/) ||
href.match(/favicon_chat_r/)) {
itype = "NORMAL";
} else if (href.match(/favicon_chat_new_notif_r2/)) {
} else if (href.match(/favicon_chat_new_notif_r/)) {
itype = "ATTENTION";
} else {
itype = "OFFLINE";
Expand Down

0 comments on commit 61ead18

Please sign in to comment.