Merge pull request #1885 from vector-im/feature/fga/room_list_all_not_left_filter
Fix see room in room list after leaving
This commit is contained in:
1
changelog.d/1006.bugfix
Normal file
1
changelog.d/1006.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Fix see room in the room list after leaving it.
|
||||
@@ -44,12 +44,12 @@ internal class RoomListFactory(
|
||||
* It mimics the usage of the old api.
|
||||
*/
|
||||
fun createRoomList(
|
||||
innerProvider: suspend () -> InnerRoomList
|
||||
innerProvider: suspend () -> InnerRoomList,
|
||||
): RoomList {
|
||||
return createRustRoomList(
|
||||
pageSize = Int.MAX_VALUE,
|
||||
numberOfPages = 1,
|
||||
initialFilterKind = RoomListEntriesDynamicFilterKind.All,
|
||||
initialFilterKind = RoomListEntriesDynamicFilterKind.AllNonLeft,
|
||||
innerRoomListProvider = innerProvider
|
||||
)
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.matrix.rustcomponents.sdk.RoomListService as InnerRustRoomListService
|
||||
internal class RustRoomListService(
|
||||
private val innerRoomListService: InnerRustRoomListService,
|
||||
private val sessionCoroutineScope: CoroutineScope,
|
||||
private val roomListFactory: RoomListFactory,
|
||||
roomListFactory: RoomListFactory,
|
||||
) : RoomListService {
|
||||
|
||||
override val allRooms: RoomList = roomListFactory.createRoomList {
|
||||
|
||||
Reference in New Issue
Block a user