Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 작품피드 뷰 본인 프로필 이동 잠금 #459

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import com.teamwss.websoso.ui.common.dialog.LoginRequestDialogFragment
import com.teamwss.websoso.ui.createFeed.CreateFeedActivity
import com.teamwss.websoso.ui.feedDetail.FeedDetailActivity
import com.teamwss.websoso.ui.feedDetail.model.EditFeedModel
import com.teamwss.websoso.ui.main.MainActivity
import com.teamwss.websoso.ui.main.feed.FeedItemClickListener
import com.teamwss.websoso.ui.main.feed.adapter.FeedAdapter
import com.teamwss.websoso.ui.main.feed.adapter.FeedType.Feed
Expand Down Expand Up @@ -76,23 +75,13 @@ class NovelFeedFragment : BaseFragment<FragmentNovelFeedBinding>(layout.fragment

private fun onClickFeedItem() = object : FeedItemClickListener {
override fun onProfileClick(userId: Long) {
when (novelFeedViewModel.isUserId(userId)) {
true ->
startActivity(
MainActivity.getIntent(
requireContext(),
MainActivity.FragmentType.MY_PAGE,
)
)

false -> {
activityResultCallback.launch(
OtherUserPageActivity.getIntent(
requireContext(),
userId,
)
if (novelFeedViewModel.isUserId(userId).not()) {
activityResultCallback.launch(
OtherUserPageActivity.getIntent(
requireContext(),
userId,
)
}
)
}
}

Expand Down