Browse Source

Revert "Normalize badge updates at the source."

This reverts commit 461052bdcf.
pull/3202/head
TheGoddessInari 6 years ago
parent
commit
3ae5f84ec3
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 6
      app/ux/WebView.js

6
app/ux/WebView.js

@ -565,11 +565,11 @@ Ext.define('Hamsket.ux.WebView',{
function handleUpdateBadge(event) {
if (Array.isArray(event.args) === true && event.args.length > 1) {
const direct = parseInt(event.args[0], 10) || 0;
const indirect = parseInt(event.args[1], 10) || 0;
const direct = event.args[0];
const indirect = event.args[1];
const count = direct > 0 ? direct : (indirect > 0 ? '•' : 0);
if (count > 0 || count === '•') {
if (count === parseInt(count, 10) || count === '•') {
me.setUnreadCount(count);
} else {
me.handleClearUnreadCount();

Loading…
Cancel
Save