From 9d9e0a85be78ff54b01fd7d42d5682826f3c40cf Mon Sep 17 00:00:00 2001 From: DongGeon0908 Date: Wed, 4 Dec 2024 09:30:49 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9D=91=EC=9B=90=ED=95=98=EA=B8=B0=20?= =?UTF-8?q?=EC=86=8C=EC=BC=93=20=EC=95=8C=EB=A6=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ws/handler/ReactiveGroupUserWebSocketHandler.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/hero/alignlab/ws/handler/ReactiveGroupUserWebSocketHandler.kt b/src/main/kotlin/com/hero/alignlab/ws/handler/ReactiveGroupUserWebSocketHandler.kt index 46d3d2e..44342c3 100644 --- a/src/main/kotlin/com/hero/alignlab/ws/handler/ReactiveGroupUserWebSocketHandler.kt +++ b/src/main/kotlin/com/hero/alignlab/ws/handler/ReactiveGroupUserWebSocketHandler.kt @@ -114,9 +114,14 @@ class ReactiveGroupUserWebSocketHandler( fun launchSendEventByCheerUp(uid: Long, groupId: Long, senderUid: Long) { groupUserByMap[groupId]?.let { groupUsers -> CoroutineScope(Dispatchers.IO + Job()).launch { - val eventMessage = groupUsers.keys - .toList() - .let { uids -> groupUserWsFacade.generateEventMessage(uid, groupId, uids) } + val eventMessage = groupUsers.keys.toList().let { uids -> + groupUserWsFacade.generateEventMessage( + uid = uid, + groupId = groupId, + uids = uids, + cheerUpSenderUid = senderUid + ) + } groupUsers[uid]?.let { session -> session