파티 초대를 그룹에 알림
This commit is contained in:
@ -446,6 +446,18 @@ func (gp *groupParty) InviteToParty(w http.ResponseWriter, r *http.Request) {
|
|||||||
},
|
},
|
||||||
Tag: []string{"Invitation"},
|
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) {
|
func (gp *groupParty) AcceptPartyInvitation(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user