Merge pull request #2480 from matrix-org/bwindels/typingnotifsmallfix

Fix: apparently room can be null here
pull/21833/head
Bruno Windels 2019-01-22 17:04:00 +00:00 committed by GitHub
commit 2234a691c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ module.exports = React.createClass({
},
onRoomTimeline: function(event, room) {
if (room.roomId === this.props.room.roomId) {
if (room && room.roomId === this.props.room.roomId) {
const userId = event.getSender();
// remove user from usersTyping
const usersTyping = this.state.usersTyping.filter((m) => m.userId !== userId);