fix: followChannel method response in web #48
+6
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
What does this change?
followChannel 메서드를 웹에서 사용시 리스폰스 처리를 추가했습니다.
기존에는 채널 추가를 취소하더라도 response가 true로 반환되어, 사용자가 채널 추가를 취소했는지 판단하기 어려운 상황이었습니다.
(아래의 상황에서 취소입니다.)
카카오 공식 문서를 통해 response 타입을 알아내어 개발해보았습니다.
위의 상황에서 채널 추가를 했을 시에는 true를 반환하고, 취소한 경우나 채널 ID가 이상한 경우 false를 반환할 것입니다.
카카오 공식 문서