Skip to content

Commit

Permalink
fix: renamed getTypingEvent -> updateTypingEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Troha7 committed May 6, 2024
1 parent 1d39298 commit 919edd8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class TypingController {
private final ChatTypingEventService chatTypingEventService;

@MessageMapping("/typing/{isTyping}")
public void getTypingEvent(@DestinationVariable boolean isTyping, Principal principal) {
public void updateTypingEvent(@DestinationVariable boolean isTyping, Principal principal) {
String email = principal.getName();
chatTypingEventService.getTypingEvent(isTyping, email);
chatTypingEventService.updateTypingEvent(isTyping, email);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class ChatTypingEventServiceImpl implements ChatTypingEventService {
private final ChatNotificationService chatNotificationService;

@Override
public void getTypingEvent(Boolean isTyping, String email) {
log.info("Start getTypingEvent isTyping={}, email={}", isTyping, email);
public void updateTypingEvent(Boolean isTyping, String email) {
log.info("Start updateTypingEvent isTyping={}, email={}", isTyping, email);
contactEventService.updateTypingEvent(email, isTyping);

Integer topicId = contactEventService.getAllByEmail(email).stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
public interface ChatTypingEventService {

/**
* Get typing event by user email.
* Update typing event by user email.
*
* @param isTyping typing status.
* @param email user email.
*/
void getTypingEvent(Boolean isTyping, String email);
void updateTypingEvent(Boolean isTyping, String email);

}

0 comments on commit 919edd8

Please sign in to comment.