mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-26 21:54:50 -05:00
[PR #22752] [MERGED] fix: allow sending image-only messages without text in channels and channel threads #26844
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22752
Author: @silentoplayz
Created: 3/17/2026
Status: ✅ Merged
Merged: 3/17/2026
Merged by: @tjbck
Base:
dev← Head:fix/profile-image-fallbacks-and-channel-fixes-final📝 Commits (1)
4645fd7fix(channel): allow sending image-only messages without text📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/channel/MessageInput.svelte(+1 -1)📄 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
In channels, group channels, direct messages, and threads, it was not possible to send a message containing only an image/file attachment by pressing
Enteron the keyboard. TheEnterkey submission guard only checked for text content (content !== ''), ignoring attached files. TheSendbutton already handled this case correctly via itsdisabledattribute. This PR aligns the keyboard submission logic with the button's behavior.Fixed
Enterkey not submitting messages in channels/DMs/threads when only file attachments were present (no text content).Additional Information
src/lib/components/channel/MessageInput.svelte:if (content !== '' && ...)→if ((content !== '' || files.length > 0) && ...)src/lib/components/chat/MessageInput.sveltealready had the correctprompt !== '' || files.length > 0check.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.