From 491bc70c679108135ed587be85730a3e88c8ca7b Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Thu, 11 Feb 2021 17:44:36 -0400 Subject: [PATCH] [CHORE] Remove unnecessary share reducer calls (#2861) * Remove unnecesary share reducer calls * Update Avatar Co-authored-by: Diego Mello --- app/views/CreateDiscussionView/index.js | 2 +- app/views/RoomInfoEditView/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/CreateDiscussionView/index.js b/app/views/CreateDiscussionView/index.js index 43329f102..8b33e9ca5 100644 --- a/app/views/CreateDiscussionView/index.js +++ b/app/views/CreateDiscussionView/index.js @@ -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 }); diff --git a/app/views/RoomInfoEditView/index.js b/app/views/RoomInfoEditView/index.js index 58664c6f2..2669566eb 100644 --- a/app/views/RoomInfoEditView/index.js +++ b/app/views/RoomInfoEditView/index.js @@ -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 });