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) {