Network deletion now propagates to all active connections that are in

that network
This commit is contained in:
2025-01-06 18:31:27 +02:00
parent 17969fd39e
commit 14caa1959c

View File

@@ -409,11 +409,11 @@ func DeleteNetwork(ctx context.Context, sess *session.Session, request *packet.D
return &ErrInternalError
}
return &packet.NetworksInfo{
return NetworkPropagate(ctx, sess, network.ID, &packet.NetworksInfo{
Networks: nil,
RemovedNetworks: []snowflake.ID{request.Network},
Set: false,
}
})
}
func SetMember(ctx context.Context, sess *session.Session, request *packet.SetMember) packet.Payload {