Create a GenericIdArgs instead of using unrelated GenericIdArgs - fix crash

This commit is contained in:
Benoit Marty 2021-05-05 18:36:33 +02:00
parent cdb3d7c308
commit 908e7be2ba
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import com.airbnb.mvrx.Async
import com.airbnb.mvrx.MvRxState
import com.airbnb.mvrx.Uninitialized
import im.vector.app.R
import im.vector.app.core.platform.GenericIdArgs
import im.vector.app.features.roomprofile.RoomProfileArgs
import org.matrix.android.sdk.api.crypto.RoomEncryptionTrustLevel
import org.matrix.android.sdk.api.session.events.model.Event
@ -38,6 +39,8 @@ data class RoomMemberListViewState(
) : MvRxState {
constructor(args: RoomProfileArgs) : this(roomId = args.roomId)
constructor(args: GenericIdArgs) : this(roomId = args.id)
}
data class ActionPermissions(