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

Commit cc46fd3

Browse files
author
Luke Barnard
committed
Only stop peeking if at some point we were joined
1 parent 5c37d59 commit cc46fd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/structures/RoomView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ module.exports = React.createClass({
259259
}
260260
}).done();
261261
}
262-
} else {
262+
} else if (room) {
263+
// Stop peeking because we have joined this room previously
263264
MatrixClientPeg.get().stopPeeking();
264265
this.setState({
265266
unsentMessageError: this._getUnsentMessageError(room),

0 commit comments

Comments
 (0)