Skip to content

Commit

Permalink
realm state [nfc]: Explicitly align list of realm settings on registe…
Browse files Browse the repository at this point in the history
…r vs. update
  • Loading branch information
gnprice committed Dec 21, 2023
1 parent 4152ab7 commit a47d5ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/realm/realmReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export default (
providerId: action.data.realm_video_chat_provider,
}),

// Realm settings.
// These should each get updated on realm/update_dict events, below.
mandatoryTopics: action.data.realm_mandatory_topics,
messageContentDeleteLimitSeconds: action.data.realm_message_content_delete_limit_seconds,
messageContentEditLimitSeconds: action.data.realm_message_content_edit_limit_seconds,
Expand Down Expand Up @@ -267,6 +269,7 @@ export default (
if (data.create_private_stream_policy !== undefined) {
result.createPrivateStreamPolicy = data.create_private_stream_policy;
}
// no event updates result.webPublicStreamsEnabled, because it's a server setting
if (data.create_web_public_stream_policy !== undefined) {
result.createWebPublicStreamPolicy = data.create_web_public_stream_policy;
}
Expand Down

0 comments on commit a47d5ff

Please sign in to comment.