Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

remove room #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

remove room #74

wants to merge 2 commits into from

Conversation

dleung25
Copy link

@dleung25 dleung25 commented Dec 12, 2018

looking at #68 , I (tentatively) implemented a leave room button (I'm open to suggestions for a more aesthetic appearance and/orlocation) as shown
react-slack

However, it doesn't update the room list on the right until another action's been taken

(Also noted that I don't think removeUserFromRoom is implemented properly or used in any context currently, so if anyone could help me out with this + concurrently updating the room that'd be great - otherwise I'll try to figure it out in the meantime)

@YashZolmajdi YashZolmajdi mentioned this pull request Jan 9, 2019
</li>
))}
</ul>
<div>
Copy link
Contributor

Choose a reason for hiding this comment

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

incorrect indentation

@@ -54,7 +54,12 @@ class View extends React.Component {
this.actions.scrollToEnd()
},

removeRoom: room => this.setState({ room: {} }),
removeRoom: room => {
Copy link
Contributor

Choose a reason for hiding this comment

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

incorrect indentation

@@ -221,7 +226,7 @@ class View extends React.Component {
sidebarOpen,
userListOpen,
} = this.state
const { createRoom, createConvo, removeUserFromRoom } = this.actions
const { createRoom, createConvo/*, removeUserFromRoom*/ } = this.actions
Copy link
Contributor

Choose a reason for hiding this comment

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

remove commented code or add todo comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants