From b44a6b1fd8d3de7a0de9ac12e31f4d092497e645 Mon Sep 17 00:00:00 2001 From: mountain Date: Sat, 7 Oct 2023 14:51:12 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9E=9C=EB=8D=A4=20=EB=A7=A4=EC=B9=AD=20?= =?UTF-8?q?=EC=A0=95=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/group_instant.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/group_instant.go b/core/group_instant.go index 7cd3bda..734ac92 100644 --- a/core/group_instant.go +++ b/core/group_instant.go @@ -206,6 +206,7 @@ func (gi *groupInstant) Join(w http.ResponseWriter, r *http.Request) { }) gi.enterRoom(gid, mid) + gi.rh.JSONSet(mid.Hex(), "$.instant", bson.M{"id": gd.strid()}) // 최초 입장이라면 새 멤버에 그룹 전체를 알림 gi.sendUpstreamMessage(&wshandler.UpstreamMessage{ @@ -292,7 +293,7 @@ func (gi *groupInstant) Leave(w http.ResponseWriter, r *http.Request) { // mid한테는 빈 GroupDocFull을 보낸다. 그러면 지워짐 gi.sendUpstreamMessage(&wshandler.UpstreamMessage{ Target: data.Mid.Hex(), - Body: bson.M{"gid": data.Gid}, + Body: bson.M{"_gid": data.Gid}, Tag: []string{"GroupDocFull", gd.strid()}, })