Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Oct 24, 2017

Fixes element-hq/element-web#4850

Signed-off-by: Andrew (anoa) anoa@openmailbox.org

Fixes matrix-org#4850 Signed-off-by: Andrew (anoa) <anoa@openmailbox.org>
Signed-off-by: Andrew (anoa) <anoa@openmailbox.org>
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK by me although should probably take the logging out which I'm assuming was just for debugging? @rxl881 wdyt?

@rxl881
Copy link
Contributor

rxl881 commented Oct 26, 2017

Thanks for this @anoadragon453 -- This will be a really useful addition. Just a couple of comments. Can you please switch this round such that we are checking for 'hideWidgetDrawer === "true"', rather than 'showWidget == "false"'? The default state should be to show the widget drawer, and this is just adding the ability to suppress it. Hopefully this change will make it a bit clearer. Thanks!

console.warn("Key is: " + room.roomId + "_show_widget_drawer");
console.warn("showWidget is: " + showWidget);

if (showWidget == "false") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be 'showWidget === "false"', to avoid falsy comparison of missing key.

_shouldShowApps: function(room) {
if (!BROWSER_SUPPORTS_SANDBOX) return false;

// Check if user has prompted to close this app before
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please modify this comment to:

// Check if user has previously chosen to hide the app drawer for this room

Signed-off-by: Andrew (anoa) <anoa@openmailbox.org>
@anoadragon453
Copy link
Member Author

anoadragon453 commented Oct 26, 2017

Removed logs and switched over to the idea of 'hiding' rather than 'not showing'. Let me know if anything else needs to be changed.

Copy link
Contributor

@rxl881 rxl881 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks very much for this @anoadragon453 ! :)

@anoadragon453
Copy link
Member Author

Thank you guys for some awesome chat software!

@anoadragon453
Copy link
Member Author

This all good to go? Eager to use on riot.im at some point :)

@t3chguy
Copy link
Member

t3chguy commented Nov 4, 2017

@ara4n
Copy link
Member

ara4n commented Nov 4, 2017

i don’t know why this hasn’t been merged - @rxl881?

@rxl881
Copy link
Contributor

rxl881 commented Nov 4, 2017

Sorry that this has been delayed @t3chguy. I was waiting for @dbkr to complete/approve his review.
I'll make sure that this is merged on Monday, at the latest.

@t3chguy
Copy link
Member

t3chguy commented Nov 4, 2017

/me was just poking for @anoadragon453, not for self

@anoadragon453
Copy link
Member Author

@t3chguy Thank you for that!

@rxl881 rxl881 merged commit f1db564 into matrix-org:develop Nov 6, 2017
@rxl881
Copy link
Contributor

rxl881 commented Nov 6, 2017

Apologies for the delay in getting this merged @anoadragon453. It has now been merged and should be live on /develop shortly. Thanks again for the contribution!

@anoadragon453
Copy link
Member Author

anoadragon453 commented Nov 6, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants