mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #21722] [CLOSED] fix: conditionally hide user status emojis based on global enable_user_status feature flag config #41870
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21722
Author: @silentoplayz
Created: 2/22/2026
Status: ❌ Closed
Base:
dev← Head:fix/user-modal-status-emoji📝 Commits (2)
5229d77fix(ui): conditionally hide user status emojis in modal based on global enable_user_status feature flag config5922587fix(ui): selectively hide user status emojis in sidebar dm channels based on global enable_user_status flag📊 Changes
2 files changed (+4 additions, -4 deletions)
View changed files
📝
src/lib/components/channel/Messages/Message/UserStatus.svelte(+2 -2)📝
src/lib/components/layout/Sidebar/ChannelItem.svelte(+2 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
UserStatus.svelte) even when user statuses were globally disabled via settings or environment variables (ENABLE_USER_STATUS=false).Added
$config?.features?.enable_user_statusconditional wrapping correctly encapsulating the entire emoji container layout explicitly.configuser preferences layout store precisely insidesrc/lib/components/channel/Messages/Message/UserStatus.sveltecorrectly enabling environment variable validation parsing safely.Fixed
UserList.sveltehover profiles gracefully.Additional Information
UserStatus.sveltemodule previously only evaluated the presence ofuser?.status_emojioruser?.status_messageinside its internal HTML markup conditional branches without cross-referencing$config?.features?.enable_user_statusexplicitly. This resulted in the status payload conditionally hiding text if stripped serverside natively by configurations overriding it internally, yet continuing to generate empty ghost emoji blocks due to the payload conditionally clearing improperly locally when text drops natively. Adding the explicit condition ensures synchronicity indefinitely.Screenshots or Videos
Before
After
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.