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

feat: 빈 쪽지 못남기게 하는 기능 구현 #542

Merged

Conversation

hyunji1203
Copy link
Collaborator

📌 관련 이슈

🛠️ 작업 내용

  • 내용이 없는 빈 쪽지를 날리면 토스트가 뜨며 등록하지 못하게 막는 기능 구현

🎯 리뷰 포인트

  • 토스트 문구가 괜찮은지 궁금합니다.

⏳ 작업 시간

추정 시간: 1h
실제 시간: 1h
이유: 차이가 많이 난다면 이유도 같이 적어주세요 :)

@hyunji1203 hyunji1203 added 🦄 안드로이드 안드로이드 라벨 D-1 labels Nov 7, 2023
@hyunji1203 hyunji1203 self-assigned this Nov 7, 2023
@hyunji1203 hyunji1203 closed this Nov 7, 2023
@hyunji1203 hyunji1203 deleted the feat/#521_빈_쪽지_못남기게_하는_기능_구현 branch November 7, 2023 09:46
@hyunji1203 hyunji1203 restored the feat/#521_빈_쪽지_못남기게_하는_기능_구현 branch November 7, 2023 09:47
@hyunji1203 hyunji1203 removed 🦄 안드로이드 안드로이드 라벨 D-1 labels Nov 7, 2023
@hyunji1203 hyunji1203 reopened this Nov 7, 2023
@krrong krrong added 🦄 안드로이드 안드로이드 라벨 크롱🦖 labels Nov 8, 2023
Copy link
Collaborator

@krrong krrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어요 뽀또!
수정이 필요해 보이는 사항 하나 남겼으니 반영해주세요 :)

@@ -203,6 +203,14 @@ class OnAdventureActivity :
}
}

private fun registerLetter(message: String) {
if (message.isNotEmpty()) {
viewModel::sendLetter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P[1]
내용이 비어있는 쪽지에 대해서는 토스트 메시지가 잘 뜨네요!
하지만 내용이 잘 들어가 있는 쪽지에 대해서는 서버에 전송이 안되고 있어요!!

// before
viewModel::sendLetter

// after
viewModel.sendLetter(message)

변경해야 합니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow 큰일날뻔 했네요 이야...쇼킹하군요
바로 수정했습니다!

@krrong krrong merged commit ddea7e2 into dev_android Nov 8, 2023
3 checks passed
@krrong krrong deleted the feat/#521_빈_쪽지_못남기게_하는_기능_구현 branch November 8, 2023 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants