접속 종료시 pending 처리

This commit is contained in:
2024-01-24 18:16:26 +09:00
parent 2cf1ebb88f
commit e4b0f569e8

View File

@ -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,
@ -828,6 +829,7 @@ func (gp *groupParty) ClientDisconnected(msg string, callby *wshandler.Sender) {
}) })
} }
} }
}
} }
func (gp *groupParty) UpdatePartyMemberDocumentDirect(ctx wshandler.ApiCallContext) { func (gp *groupParty) UpdatePartyMemberDocumentDirect(ctx wshandler.ApiCallContext) {