Browse Source

Fixed bug on deleting a service with unread messages

The global counter was not clearing.
v0.5.8
Ramiro Saenz 8 years ago
parent
commit
35afb3e6a8
  1. 7
      app/ux/WebView.js

7
app/ux/WebView.js

@ -125,6 +125,7 @@ Ext.define('Rambox.ux.WebView',{
}
,listeners: {
afterrender: me.onAfterRender
,beforedestroy: me.onBeforeDestroy
}
});
@ -139,6 +140,12 @@ Ext.define('Rambox.ux.WebView',{
me.callParent(config);
}
,onBeforeDestroy: function() {
var me = this;
me.setUnreadCount(0);
}
,webViewConstructor: function( enabled ) {
var me = this;

Loading…
Cancel
Save