mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	Fix invites so they display in room list
This commit is contained in:
		
							parent
							
								
									0016c2ad83
								
							
						
					
					
						commit
						431c93fc29
					
				@ -98,10 +98,8 @@ module.exports = {
 | 
				
			|||||||
    getRoomList: function() {
 | 
					    getRoomList: function() {
 | 
				
			||||||
        return RoomListSorter.mostRecentActivityFirst(
 | 
					        return RoomListSorter.mostRecentActivityFirst(
 | 
				
			||||||
            MatrixClientPeg.get().getRooms().filter(function(room) {
 | 
					            MatrixClientPeg.get().getRooms().filter(function(room) {
 | 
				
			||||||
                return room.hasMembershipState(
 | 
					                var member = room.getMember(MatrixClientPeg.get().credentials.userId);
 | 
				
			||||||
                    MatrixClientPeg.get().credentials.userId,
 | 
					                return member && (member.membership == "join" || member.membership == "invite");
 | 
				
			||||||
                    "join"
 | 
					 | 
				
			||||||
                );
 | 
					 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user