Autocancel notifications

Lorenz Hübschle-Schneider 11 years ago
parent a04bf7f1e0
commit ee8c62873f
  1. 4
      js/glowingbear.js

@ -585,9 +585,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$scope.showSidebar = false;
models.setActiveBuffer(buffer);
}
// Cancel notification
window.plugin.notification.local.cancel(id);
};
}
};
@ -1106,6 +1103,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
id: id,
message: body,
title: title,
autoCancel: true,
json: JSON.stringify({ buffer: buffer.id }) // remember buffer id for when the notification is clicked
});
}

Loading…
Cancel
Save