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

* Remove unnecesary share reducer calls

* Update Avatar

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Gerzon Z 2021-02-11 17:44:36 -04:00 committed by GitHub
parent 036dee16cd
commit 491bc70c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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
});

View File

@ -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
});