mirror of https://github.com/vector-im/riot-web
Comment delay
parent
a1f8116e3b
commit
74aef1fdad
|
@ -136,6 +136,8 @@ module.exports = React.createClass({
|
||||||
newTarget = null;
|
newTarget = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// give some time for the user to see the icon change first, since
|
||||||
|
// this will hide the context menu once it completes
|
||||||
q.delay(500).done(() => {
|
q.delay(500).done(() => {
|
||||||
return Rooms.setDMRoom(this.props.room.roomId, newTarget).finally(() => {
|
return Rooms.setDMRoom(this.props.room.roomId, newTarget).finally(() => {
|
||||||
// Close the context menu
|
// Close the context menu
|
||||||
|
|
Loading…
Reference in New Issue