mirror of https://github.com/vector-im/riot-web
				
				
				
			Merge pull request #5592 from matrix-org/jryans/opt-room-id
Tweak a few room ID checkspull/21833/head
						commit
						50452d52ff
					
				| 
						 | 
				
			
			@ -45,7 +45,7 @@ class FilePanel extends React.Component {
 | 
			
		|||
    };
 | 
			
		||||
 | 
			
		||||
    onRoomTimeline = (ev, room, toStartOfTimeline, removed, data) => {
 | 
			
		||||
        if (room.roomId !== this.props.roomId) return;
 | 
			
		||||
        if (room?.roomId !== this.props?.roomId) return;
 | 
			
		||||
        if (toStartOfTimeline || !data || !data.liveEvent || ev.isRedacted()) return;
 | 
			
		||||
 | 
			
		||||
        if (ev.isBeingDecrypted()) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,7 +81,7 @@ export default class WhoIsTypingTile extends React.Component {
 | 
			
		|||
    };
 | 
			
		||||
 | 
			
		||||
    onRoomTimeline = (event, room) => {
 | 
			
		||||
        if (room && room.roomId === this.props.room.roomId) {
 | 
			
		||||
        if (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