showWidget->hideWidgetDrawer and remove logs

Signed-off-by: Andrew (anoa) <anoa@openmailbox.org>
This commit is contained in:
Andrew (anoa) 2017-10-26 11:17:13 -07:00
parent 9821f0d459
commit b4868a6846
No known key found for this signature in database
GPG key ID: 174BEAB009FD176D
2 changed files with 8 additions and 15 deletions

View file

@ -305,17 +305,12 @@ module.exports = React.createClass({
_shouldShowApps: function(room) {
if (!BROWSER_SUPPORTS_SANDBOX) return false;
// Check if user has prompted to close this app before
// If so, do not show apps
let showWidget = localStorage.getItem(
room.roomId + "_show_widget_drawer");
// Check if user has previously chosen to hide the app drawer for this
// room. If so, do not show apps
let hideWidgetDrawer = localStorage.getItem(
room.roomId + "_hide_widget_drawer");
console.warn(room);
console.warn("Key is: " + room.roomId + "_show_widget_drawer");
console.warn("showWidget is: " + showWidget);
if (showWidget == "false") {
console.warn("We're blocking the widget from loading.");
if (hideWidgetDrawer === "true") {
return false;
}