mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
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/22750
Author: @aayushbaluni
Created: 3/17/2026
Status: ❌ Closed
Base:
main← Head:fix/22742-shared-chats-user-null📝 Commits (1)
76c4b12fix: guard against null user in Shared Chats view (#22742)📊 Changes
1 file changed (+11 additions, -7 deletions)
View changed files
📝
src/lib/components/chat/Messages/UserMessage.svelte(+11 -7)📄 Description
Summary
Fixes #22742.
Root cause: UserMessage.svelte accesses user.id and user.name without null checks. When viewing a shared chat as an unauthenticated viewer, user is null, causing TypeError.
Fix: Wrap ProfileImage in {#if user}, add user && guard to Name condition, add fallback for message.user when user is null.
Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.