Skip to content

Commit 61ead18

Browse files
committed
Fix #87 : notification of new messages in systray was broken
1 parent 721a628 commit 61ead18

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ An electron-base client for Google Hangouts Chat, since Google didn't see fit to
44

55
## CHANGELOG
66

7+
### 5.27.22-4
8+
9+
Fix systray notification (favicon name changed on google side) see https://github.com/squalou/google-chat-linux/issues/87
10+
711
### 5.27.22-3
812

913
Add a nice pseudo-protocol support : open gchat:// urls in client instead of browser. (requires configutaion in browsers)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ So, **to use electron's Wayland rendering** edit `/usr/share/applciations/google
101101

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

104+
### 5.27.22-4
105+
106+
Fix systray notification (favicon name changed on google side) see https://github.com/squalou/google-chat-linux/issues/87
107+
104108
### 5.27.22-3
105109

106110
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.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-chat-linux",
3-
"version": "5.27.22-3",
3+
"version": "5.27.22-4",
44
"description": "Unofficial alternative Google Chat desktop app",
55
"main": "src/index.js",
66
"scripts": {

src/tray.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ const initializeTray = (windowObj) => {
7373

7474
ipcMain.on('favicon-changed', (evt, href) => {
7575
var itype = "";
76-
if (href.match(/favicon_chat_new_non_notif_r2/) ||
77-
href.match(/favicon_chat_r2/)) {
76+
if (href.match(/favicon_chat_new_non_notif_r/) ||
77+
href.match(/favicon_chat_r/)) {
7878
itype = "NORMAL";
79-
} else if (href.match(/favicon_chat_new_notif_r2/)) {
79+
} else if (href.match(/favicon_chat_new_notif_r/)) {
8080
itype = "ATTENTION";
8181
} else {
8282
itype = "OFFLINE";

0 commit comments

Comments
 (0)