Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,34 @@ See the [setting up TLS for Mattermost](/deployment-guide/server/setup-tls) for
</tbody>
</table>

### Enable channel viewed WebSocket messages

<table>
<colgroup>
<col style={{width: '38%'}} />
<col style={{width: '61%'}} />
</colgroup>
<tbody>
<tr>
<td><p>Determine whether <code>channel_viewed</code> WebSocket events are sent. These events synchronize unread notifications across a user's clients and devices.</p><ul><li><strong>true</strong>: <strong>(Default)</strong> <code>channel_viewed</code> WebSocket events are sent.</li><li><strong>false</strong>: <code>channel_viewed</code> WebSocket events aren't sent.</li></ul></td>
<td><ul><li>System Config path: <strong>Environment &gt; Web Server</strong></li><li><code>config.json</code> setting: <code>ServiceSettings</code> &gt; <code>EnableChannelViewedMessages</code> &gt; <code>true</code></li><li>Environment variable: <code>MM_SERVICESETTINGS_ENABLECHANNELVIEWEDMESSAGES</code></li></ul></td>
</tr>
</tbody>
</table>

<Note>

Disabling this configuration setting in larger deployments may improve server performance in the following areas:

- Reduced database load: When `channel_viewed` events are disabled, the server no longer needs to log these events in the database. This reduces the number of write and update operations, which can be substantial in a busy server with many users frequently switching channels.
- Decreased network traffic: Disabling these events means there are fewer messages sent between the server and clients. This reduction in network traffic can lower latency and improve the overall responsiveness of the server, especially for users with slower connections.
- Lower server CPU usage: Processing `channel_viewed` events requires CPU resources to handle database transactions and network communication. Without these events, the server's CPU can be utilized more efficiently for other tasks, improving the overall performance.
- Improved user experience: With reduced server load and network traffic, users may experience faster loading times and a more fluid interaction with the application.

However, disabling this configuration setting affects some functionality, such as accurate tracking of read and unread messages in channels. It's important to balance performance improvements with the needs of your organization and users.

</Note>

### Enable insecure outgoing connections

<table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,33 +135,6 @@ Specify the maximum frequency, in seconds, which the batching job checks for new
</tbody>
</table>

### Enable channel viewed websocket messages

This setting determines whether `channel_viewed WebSocket` events are sent, which synchronize unread notifications across clients and devices.

<table>
<colgroup>
<col style={{width: '100%'}} />
</colgroup>
<tbody>
<tr>
<td>This feature's <code>config.json</code> setting is <code>"EnableChannelViewedMessages": true</code> with options <code>true</code> and <code>false</code>.</td>
</tr>
</tbody>
</table>

<Note>

Disabling this experimental configuration setting in larger deployments may improve server performance in the following areas:

- Reduced Database Load: When channel_viewed events are disabled, the server no longer needs to log these events in the database. This reduces the number of write and update operations, which can be substantial in a busy server with many users frequently switching channels.
- Decreased Network Traffic: Disabling these events means there are fewer messages sent between the server and clients. This reduction in network traffic can lower latency and improve the overall responsiveness of the server, especially for users with slower connections.
- Lower Server CPU Usage: Processing channel_viewed events requires CPU resources to handle database transactions and network communication. Without these events, the server's CPU can be utilized more efficiently for other tasks, improving the overall performance.
- Improved User Experience: With reduced server load and network traffic, users may experience faster loading times and a more fluid interaction with the application.
- However, disabling this configuration setting affects some functionality, such as accurate tracking of read and unread messages in channels. It’s important to balance performance improvements with the needs of your organization and users.

</Note>

### Enable default channel leave/join system messages

This setting determines whether team leave/join system messages are posted in the default `town-square` channel.
Expand Down
2 changes: 1 addition & 1 deletion server/public/model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ type ServiceSettings struct {
EnableFileSearch *bool `access:"write_restrictable"`
MinimumHashtagLength *int `access:"environment_database,write_restrictable,cloud_restrictable"`
EnableUserTypingMessages *bool `access:"site_posts,write_restrictable,cloud_restrictable"`
EnableChannelViewedMessages *bool `access:"experimental_features,write_restrictable,cloud_restrictable"`
EnableChannelViewedMessages *bool `access:"environment_web_server,write_restrictable,cloud_restrictable"`
EnableUserStatuses *bool `access:"write_restrictable,cloud_restrictable"`
ExperimentalEnableAuthenticationTransfer *bool `access:"experimental_features"`
ClusterLogTimeoutMilliseconds *int `access:"write_restrictable,cloud_restrictable"`
Expand Down
5 changes: 2 additions & 3 deletions webapp/channels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@
"prop-types": "15.8.1",
"react": "18.2.0",
"react-beautiful-dnd": "13.1.1",
"react-bootstrap": "github:mattermost/react-bootstrap#05559f4c61c5a314783c390d2d82906ee8c7e558",
"react-bootstrap": "github:mattermost/react-bootstrap#c17701564a6f240a14419d94369936c380f917e5",
"react-color": "2.19.3",
"react-day-picker": "8.3.6",
"react-dom": "18.2.0",
"react-intl": "*",
"react-is": "18.2.0",
"react-overlays": "0.9.3",
"react-overlays": "5.2.1",
"react-redux": "9.2.0",
"react-router-dom": "5.3.4",
"react-select": "5.9.0",
Expand Down Expand Up @@ -129,7 +129,6 @@
"@types/react-bootstrap": "0.32.35",
"@types/react-color": "3.0.6",
"@types/react-dom": "18.2.25",
"@types/react-overlays": "1.1.3",
"@types/react-router-dom": "5.3.3",
"@types/react-transition-group": "4.4.5",
"@types/react-virtualized-auto-sizer": "1.0.1",
Expand Down
Loading
Loading