접속 종료시 pending 처리
This commit is contained in:
@ -804,6 +804,7 @@ func (gp *groupParty) ClientDisconnected(msg string, callby *wshandler.Sender) {
|
|||||||
// 나를 먼저 룸에서 빼야 나한테 메시지가 안감
|
// 나를 먼저 룸에서 빼야 나한테 메시지가 안감
|
||||||
gp.leaveRoom(gid, callby.Accid)
|
gp.leaveRoom(gid, callby.Accid)
|
||||||
|
|
||||||
|
if msg != "pending" {
|
||||||
gd := &partyDoc{
|
gd := &partyDoc{
|
||||||
rh: gp.rh,
|
rh: gp.rh,
|
||||||
id: gid,
|
id: gid,
|
||||||
@ -817,7 +818,7 @@ func (gp *groupParty) ClientDisconnected(msg string, callby *wshandler.Sender) {
|
|||||||
Tag: []string{"GroupDocFull", gidstr},
|
Tag: []string{"GroupDocFull", gidstr},
|
||||||
})
|
})
|
||||||
gd.rh.Del(gd.rh.Context(), gd.strid()).Result()
|
gd.rh.Del(gd.rh.Context(), gd.strid()).Result()
|
||||||
} else if msg != "pending" {
|
} else {
|
||||||
// gid에는 제거 메시지 보냄
|
// gid에는 제거 메시지 보냄
|
||||||
gp.sendUpstreamMessage(&wshandler.UpstreamMessage{
|
gp.sendUpstreamMessage(&wshandler.UpstreamMessage{
|
||||||
Target: "#" + gidstr,
|
Target: "#" + gidstr,
|
||||||
@ -829,6 +830,7 @@ func (gp *groupParty) ClientDisconnected(msg string, callby *wshandler.Sender) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (gp *groupParty) UpdatePartyMemberDocumentDirect(ctx wshandler.ApiCallContext) {
|
func (gp *groupParty) UpdatePartyMemberDocumentDirect(ctx wshandler.ApiCallContext) {
|
||||||
gidobj, _ := primitive.ObjectIDFromHex(ctx.Arguments[0].(string))
|
gidobj, _ := primitive.ObjectIDFromHex(ctx.Arguments[0].(string))
|
||||||
|
|||||||
Reference in New Issue
Block a user