From 5fc64d7471ac57651f2118e7f41f737868b4987e Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 9 Nov 2023 00:24:13 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=ED=8B=B0=20=EC=B4=88=EB=8C=80?= =?UTF-8?q?=EB=A5=BC=20=EA=B7=B8=EB=A3=B9=EC=97=90=20=EC=95=8C=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/group_party.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/group_party.go b/core/group_party.go index 3761cc5..c286c6f 100644 --- a/core/group_party.go +++ b/core/group_party.go @@ -446,6 +446,18 @@ func (gp *groupParty) InviteToParty(w http.ResponseWriter, r *http.Request) { }, Tag: []string{"Invitation"}, }) + + // 그룹에게 알림 + gp.sendUpstreamMessage(&wshandler.UpstreamMessage{ + Target: "#" + gid.Hex(), + Body: bson.M{ + gd.tid(targetid): bson.M{ + "nickname": doc.Invitee["nickname"], + "_invite": true, + }, + }, + Tag: []string{"MemberDocFull"}, + }) } func (gp *groupParty) AcceptPartyInvitation(w http.ResponseWriter, r *http.Request) {