     /// Flag to filter only suggested rooms, if set to `true`, `dataTypes` and `notDataTypes` are not valid.
     public let onlySuggested: Bool
     
+    /// Flag to hide any rooms where the user's membership is unknown. This has no effect when `onlySuggested` is `true`.
+    /// When set to `false`, rooms that have been cached during peeking may be included in the filtered results.
+    public let hideUnknownMembershipRooms: Bool
+    
     /// Initializer
     /// - Parameters:
     ///   - dataTypes: data types to fetch. Pass `MXRoomListDataFilterOptions.emptyDataTypes` not to specify any.

        }
        
        if !onlySuggested {
            // Filter out any room previews by making sure the user has valid membership.
            let memberPredicate = NSPredicate(format: "%K != %d",
                                              #keyPath(MXRoomSummaryProtocol.membership), MXMembership.unknown.rawValue)
            subpredicates.append(memberPredicate)
            
            if !dataTypes.isEmpty {
                let subpredicate = NSPredicate(format: "(%K & %d) != 0",

                onlySuggested: Bool = false,
                query: String? = nil,
                space: MXSpace? = nil,
                showAllRoomsInHomeSpace: Bool,
                hideUnknownMembershipRooms: Bool = true) {
        self.dataTypes = dataTypes
        self.notDataTypes = notDataTypes
        self.onlySuggested = onlySuggested
        self.query = query
        self.space = space
        self.showAllRoomsInHomeSpace = showAllRoomsInHomeSpace
        self.hideUnknownMembershipRooms = hideUnknownMembershipRooms
    }
    
    /// Just to be used for in-memory data
