Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 99f092e

Browse files
authored
Merge pull request #1802 from matrix-org/luke/group-view-change-delay-warning
Add change delay warning in GroupView settings
2 parents c614810 + bc5699b commit 99f092e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/structures/GroupView.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,15 @@ export default React.createClass({
707707
});
708708

709709
const header = this.state.editing ? <h2> { _t('Community Settings') } </h2> : <div />;
710+
const changeDelayWarning = this.state.editing && this.state.isUserPrivileged ?
711+
<div className="mx_GroupView_changeDelayWarning">
712+
{ _t( 'Changes made to your community might not be seen by other users ' +
713+
'for up to 30 minutes.',
714+
) }
715+
</div> : <div />;
710716
return <div className={groupSettingsSectionClasses}>
711717
{ header }
718+
{ changeDelayWarning }
712719
{ this._getLongDescriptionNode() }
713720
{ this._getRoomsNode() }
714721
</div>;

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@
766766
"Leave": "Leave",
767767
"Unable to leave room": "Unable to leave room",
768768
"Community Settings": "Community Settings",
769+
"Changes made to your community might not be seen by other users for up to 30 minutes.": "Changes made to your community might not be seen by other users for up to 30 minutes.",
769770
"These rooms are displayed to community members on the community page. Community members can join the rooms by clicking on them.": "These rooms are displayed to community members on the community page. Community members can join the rooms by clicking on them.",
770771
"Add rooms to this community": "Add rooms to this community",
771772
"Featured Rooms:": "Featured Rooms:",

0 commit comments

Comments
 (0)