Skip to content

Commit

Permalink
🐛fix: fix duplicate fullName
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantaphocpython committed Nov 11, 2024
1 parent 90cd17d commit aa454af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void join(String join) {

for (String existingUserId : roomUsers) {
if (!existingUserId.equals(userId)) {
simpMessagingTemplate.convertAndSendToUser(existingUserId, "/topic/call", userId);
simpMessagingTemplate.convertAndSendToUser(existingUserId, "/topic/call", join);
log.info("Call sent to user: {}", existingUserId);
}
}
Expand All @@ -72,7 +72,7 @@ public void call(String call) {
jsonObject.get("callTo").getClass(),
jsonObject.get("callFrom").getClass());
simpMessagingTemplate.convertAndSendToUser(
jsonObject.getString("callTo"), "/topic/call", jsonObject.get("callFrom"));
jsonObject.getString("callTo"), "/topic/call", call);
}

@MessageMapping("/offer")
Expand Down

0 comments on commit aa454af

Please sign in to comment.