mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-06 04:36:21 +02:00
Merge pull request #2480 from matrix-org/bwindels/typingnotifsmallfix
Fix: apparently room can be null here
This commit is contained in:
commit
2234a691c6
@ -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…
x
Reference in New Issue
Block a user