[FIX] Respect server HideSystemMessages (#2175)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-06-09 17:11:52 -03:00 committed by GitHub
parent fcf6ed4dd7
commit caf1ef2cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1043,7 +1043,7 @@ class RoomView extends React.Component {
renderRow={this.renderItem}
loading={loading}
navigation={navigation}
hideSystemMessages={sysMes || Hide_System_Messages}
hideSystemMessages={Array.isArray(sysMes) ? sysMes : Hide_System_Messages}
/>
{this.renderFooter()}
{this.renderActions()}