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

Fix people section DropTarget and refactor Rooms #761

Merged
merged 3 commits into from
Mar 27, 2017

Conversation

lukebarnard1
Copy link
Contributor

@lukebarnard1 lukebarnard1 commented Mar 17, 2017

  • Set the verb for the people section to "tag as direct chat". This requires some CSS modifications to Riot because it's a long bit of text relative to, say, "demote".
  • Because it's quite useful to be able to set the DM status of a room with just a boolean, add a convenience function for guessing a DM member and setting the DM flag on that room with the resulting member.

Requires element-hq/element-web#3458

 - Set the verb for the people section to "tag as direct chat". This requires some CSS modifications to Riot because it's a long bit of text relative to, say, "demote".
 - Because it's quite useful to be able to set the DM status of a room with just a boolean, add a convenience function for guessing a DM member and setting the DM flag on that room with the resulting member.
src/Rooms.js Outdated

// give some time for the user to see the icon change first, since
// this will hide the context menu once it completes
return q.delay(500).then(() => {
Copy link
Member

Choose a reason for hiding this comment

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

This should be done in the UI code since it's a UI thing: it doesn't make sense in general for a utility function to delay before resolving.

@dbkr
Copy link
Member

dbkr commented Mar 17, 2017

The tests should pass if you merge develop now

@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Mar 17, 2017
@lukebarnard1 lukebarnard1 assigned dbkr and unassigned lukebarnard1 Mar 27, 2017
@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Mar 27, 2017
@lukebarnard1 lukebarnard1 merged commit 7eb3a77 into develop Mar 27, 2017
martindale pushed a commit to FabricLabs/matrix-react-sdk that referenced this pull request Dec 8, 2018
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