fix bug when failed to enablePublicSharing
fix bug when failed to enablePublicSharing

matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack