From aea8cbdc7a970a3c5e647682b05d4cbd7925e77a Mon Sep 17 00:00:00 2001 From: Sudip Kumar Prasad Date: Thu, 19 Mar 2026 14:17:08 +0530 Subject: [PATCH] Fix typos in webapp: receivedStatus and separately (#35254) * Fix typos in webapp/channels: receivedStatus and separately * Revert formatting changes and keep typo fix --------- Co-authored-by: Mattermost Build --- .../suggestion/switch_channel_provider.tsx | 2 +- .../packages/mattermost-redux/src/actions/users.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/webapp/channels/src/components/suggestion/switch_channel_provider.tsx b/webapp/channels/src/components/suggestion/switch_channel_provider.tsx index 619f0656155..d3e7b48104a 100644 --- a/webapp/channels/src/components/suggestion/switch_channel_provider.tsx +++ b/webapp/channels/src/components/suggestion/switch_channel_provider.tsx @@ -672,7 +672,7 @@ export default class SwitchChannelProvider extends Provider { const currentUserId = getCurrentUserId(this.store.getState()); // The naming format is fullname (nickname) - // username is shown seperately + // username is shown separately if ((user.first_name || user.last_name) && user.nickname) { displayName += Utils.getFullName(user); if (user.id !== currentUserId) { diff --git a/webapp/channels/src/packages/mattermost-redux/src/actions/users.ts b/webapp/channels/src/packages/mattermost-redux/src/actions/users.ts index ec50f8c23ad..13180129144 100644 --- a/webapp/channels/src/packages/mattermost-redux/src/actions/users.ts +++ b/webapp/channels/src/packages/mattermost-redux/src/actions/users.ts @@ -685,19 +685,19 @@ export function getStatusesByIds(userIds: Array): ActionFuncA export function setStatus(status: UserStatus): ActionFuncAsync { return async (dispatch, getState) => { - let recievedStatus: UserStatus; + let receivedStatus: UserStatus; try { - recievedStatus = await Client4.updateStatus(status); + receivedStatus = await Client4.updateStatus(status); } catch (error) { forceLogoutIfNecessary(error, dispatch, getState); dispatch(logError(error)); return {error}; } - const updatedStatus = {[recievedStatus.user_id]: recievedStatus.status}; - const dndEndTimes = {[recievedStatus.user_id]: recievedStatus?.dnd_end_time ?? 0}; - const isManualStatus = {[recievedStatus.user_id]: recievedStatus?.manual ?? false}; - const lastActivity = {[recievedStatus.user_id]: recievedStatus?.last_activity_at ?? 0}; + const updatedStatus = {[receivedStatus.user_id]: receivedStatus.status}; + const dndEndTimes = {[receivedStatus.user_id]: receivedStatus?.dnd_end_time ?? 0}; + const isManualStatus = {[receivedStatus.user_id]: receivedStatus?.manual ?? false}; + const lastActivity = {[receivedStatus.user_id]: receivedStatus?.last_activity_at ?? 0}; dispatch(batchActions([ { @@ -718,7 +718,7 @@ export function setStatus(status: UserStatus): ActionFuncAsync { }, ], 'BATCHING_STATUS')); - return {data: recievedStatus}; + return {data: receivedStatus}; }; }