Skip to content

Commit abc5b2d

Browse files
author
Luke Barnard
committed
UI delay in UI
1 parent be02ac3 commit abc5b2d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/components/views/context_menus/RoomTileContextMenu.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ module.exports = React.createClass({
138138

139139
if (MatrixClientPeg.get().isGuest()) return;
140140

141-
Rooms.guessAndSetDMRoom(this.props.room, newIsDirectMessage).finally(() => {
141+
Rooms.guessAndSetDMRoom(
142+
this.props.room, newIsDirectMessage
143+
).delay(500).finally(() => {
142144
// Close the context menu
143145
if (this.props.onFinished) {
144146
this.props.onFinished();

0 commit comments

Comments
 (0)