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:
commit
198147e813
3 changed files with 4 additions and 3 deletions
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.
|
* It mimics the usage of the old api.
|
||||||
*/
|
*/
|
||||||
fun createRoomList(
|
fun createRoomList(
|
||||||
innerProvider: suspend () -> InnerRoomList
|
innerProvider: suspend () -> InnerRoomList,
|
||||||
): RoomList {
|
): RoomList {
|
||||||
return createRustRoomList(
|
return createRustRoomList(
|
||||||
pageSize = Int.MAX_VALUE,
|
pageSize = Int.MAX_VALUE,
|
||||||
numberOfPages = 1,
|
numberOfPages = 1,
|
||||||
initialFilterKind = RoomListEntriesDynamicFilterKind.All,
|
initialFilterKind = RoomListEntriesDynamicFilterKind.AllNonLeft,
|
||||||
innerRoomListProvider = innerProvider
|
innerRoomListProvider = innerProvider
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ import org.matrix.rustcomponents.sdk.RoomListService as InnerRustRoomListService
|
||||||
internal class RustRoomListService(
|
internal class RustRoomListService(
|
||||||
private val innerRoomListService: InnerRustRoomListService,
|
private val innerRoomListService: InnerRustRoomListService,
|
||||||
private val sessionCoroutineScope: CoroutineScope,
|
private val sessionCoroutineScope: CoroutineScope,
|
||||||
private val roomListFactory: RoomListFactory,
|
roomListFactory: RoomListFactory,
|
||||||
) : RoomListService {
|
) : RoomListService {
|
||||||
|
|
||||||
override val allRooms: RoomList = roomListFactory.createRoomList {
|
override val allRooms: RoomList = roomListFactory.createRoomList {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue