File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
presentation/src/main/java/com/whyranoid/presentation/community/group/detail Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ class GroupDetailViewModel @Inject constructor(
29
29
stateHandle : SavedStateHandle
30
30
) : ViewModel() {
31
31
32
- private val groupId = stateHandle.get<GroupInfoUiModel >(" groupInfo" )?.groupId ? : " "
33
-
34
- // TODO : 데이터 스토어에 저장된 Uid와 비교해야함.
35
- val isLeader =
36
- stateHandle.get<GroupInfoUiModel >(" groupInfo" )?.leader?.name == " soopeach"
32
+ private val groupId = requireNotNull(stateHandle.get<GroupInfoUiModel >(" groupInfo" )).groupId
37
33
38
34
private var _groupInfo =
39
- MutableStateFlow < GroupInfoUiModel >( stateHandle.get<GroupInfoUiModel >(" groupInfo" )!! )
35
+ MutableStateFlow (requireNotNull( stateHandle.get<GroupInfoUiModel >(" groupInfo" )) )
40
36
val groupInfo: StateFlow <GroupInfoUiModel >
41
37
get() = _groupInfo .asStateFlow()
42
38
39
+ // TODO : 데이터 스토어에 저장된 Uid와 비교해야함.
40
+ val isLeader =
41
+ requireNotNull(stateHandle.get<GroupInfoUiModel >(" groupInfo" )).leader.name == " soopeach"
42
+
43
43
private val _eventFlow = MutableSharedFlow <Event >()
44
44
val eventFlow: SharedFlow <Event >
45
45
get() = _eventFlow .asSharedFlow()
You can’t perform that action at this time.
0 commit comments