Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1216 from aluxian/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
aluxian authored Mar 12, 2017
2 parents bdb1774 + 5df6240 commit 9ea9bc0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[{
"version": "2.0.6",
"channel": "stable",
"releasedAt": 1489325983503,
"urgency": "low",
"changes": {
"General": [
"Fixed an internal error related to notifications count."
]
}
}, {
"version": "2.0.5",
"channel": "beta",
"releasedAt": 1487851951578,
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [2.0.6](https://github.com/Aluxian/Messenger-for-Desktop/tree/v2.0.6) (2017-12-03)

[Full Changelog](https://github.com/Aluxian/Messenger-for-Desktop/compare/v2.0.5...v2.0.6) • [Download](https://github.com/Aluxian/Messenger-for-Desktop/releases/tag/v2.0.6)

**General**

- Fixed an internal error related to notifications count.

## [2.0.5-beta](https://github.com/Aluxian/Messenger-for-Desktop/tree/v2.0.5) (2017-23-02)

[Full Changelog](https://github.com/Aluxian/Messenger-for-Desktop/compare/v2.0.4...v2.0.5) • [Download](https://github.com/Aluxian/Messenger-for-Desktop/releases/tag/v2.0.5)
Expand Down
4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "messengerfordesktop",
"productName": "Messenger for Desktop",
"version": "2.0.5",
"versionChannel": "beta",
"version": "2.0.6",
"versionChannel": "stable",
"description": "A simple & beautiful desktop client for Facebook Messenger.",
"wvUrl": "https://www.messenger.com/login",
"wvUrlWork": "https://work.facebook.com/chat",
Expand Down
8 changes: 6 additions & 2 deletions src/scripts/browser/managers/main-window-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ class MainWindowManager extends EventEmitter {
* Update the notifications count everywhere.
*/
notifCountChanged (count, badgeDataUrl) {
this.notifManager.unreadCount = count;
if (this.notifManager) {
this.notifManager.unreadCount = count;
}

// Set icon badge
if (prefs.get('show-notifications-badge')) {
Expand All @@ -328,7 +330,9 @@ class MainWindowManager extends EventEmitter {
}

// Update tray
this.trayManager.unreadCountUpdated(count);
if (this.trayManager) {
this.trayManager.unreadCountUpdated(count);
}

// Update window title
this.prefixWindowTitle(count ? '(' + count + ') ' : '');
Expand Down

0 comments on commit 9ea9bc0

Please sign in to comment.