mirror of https://github.com/vector-im/riot-web
apparently room can be null here
parent
3c8bd3fc78
commit
1373b2f5e2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue