Skip to content

Commit

Permalink
added fix for restoring previous visibility on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Jul 27, 2019
1 parent 4f10e93 commit f2fa522
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/librg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3257,7 +3257,13 @@ extern "C" {
}

if (librg_is_server(ctx)) {
/* remove from global visibility */
librg_entity_visibility_set(ctx, entity->id, LIBRG_DEFAULT_VISIBILITY);

/* remove from relation visibilities */
librg_entity_iteratex(ctx, LIBRG_ENTITY_VISIBILITY, librg_lambda(relation), {
librg_entity_visibility_set_for(ctx, relation, entity->id, LIBRG_DEFAULT_VISIBILITY);
});
}
#endif

Expand Down

0 comments on commit f2fa522

Please sign in to comment.