Unverified Commit 491bc70c authored by Gerzon Z's avatar Gerzon Z Committed by GitHub
Browse files

[CHORE] Remove unnecessary share reducer calls (#2861)



* Remove unnecesary share reducer calls

* Update Avatar
Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 036dee16
......@@ -222,7 +222,7 @@ const mapStateToProps = state => ({
loading: state.createDiscussion.isFetching,
result: state.createDiscussion.result,
blockUnauthenticatedAccess: state.settings.Accounts_AvatarBlockUnauthenticatedAccess ?? true,
serverVersion: state.share.server.version || state.server.version,
serverVersion: state.server.version,
isMasterDetail: state.app.isMasterDetail,
encryptionEnabled: state.encryption.enabled
});
......
......@@ -666,7 +666,7 @@ class RoomInfoEditView extends React.Component {
}
const mapStateToProps = state => ({
serverVersion: state.share.server.version || state.server.version,
serverVersion: state.server.version,
encryptionEnabled: state.encryption.enabled
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment