OC-2922: Fix the bug: Menu in the gallery is not refresh after share or unsharing a file