[merge] Fix mismerge causing spaceless launch to not load any rooms
Change-Id: Idde4f17babde5522e853c0f0bd7fdba2ed6f946d
This commit is contained in:
parent
c43461e58f
commit
414881eb56
@ -97,9 +97,10 @@ class SpaceStateHandlerImpl @Inject constructor(
|
|||||||
from: SelectSpaceFrom,
|
from: SelectSpaceFrom,
|
||||||
) {
|
) {
|
||||||
val activeSession = session ?: activeSessionHolder.getSafeActiveSession() ?: return
|
val activeSession = session ?: activeSessionHolder.getSafeActiveSession() ?: return
|
||||||
val spaceToLeave = selectedSpaceDataSourceSc.currentValue?.orNull()?.first
|
val currentValue = selectedSpaceDataSourceSc.currentValue?.orNull()
|
||||||
|
val spaceToLeave = currentValue?.first
|
||||||
val spaceToSet = spaceId?.let { activeSession.getRoomSummary(spaceId) }
|
val spaceToSet = spaceId?.let { activeSession.getRoomSummary(spaceId) }
|
||||||
val sameSpaceSelected = spaceId == spaceToLeave?.roomId
|
val sameSpaceSelected = currentValue != null && spaceId == spaceToLeave?.roomId
|
||||||
|
|
||||||
if (sameSpaceSelected) {
|
if (sameSpaceSelected) {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user