v0.11.22 bug fix

This commit is contained in:
2026-03-22 15:06:03 -04:00
parent 300cf5d869
commit ca470f1bb6
4 changed files with 21 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "jama-backend", "name": "jama-backend",
"version": "0.11.21", "version": "0.11.22",
"description": "TeamChat backend server", "description": "TeamChat backend server",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

View File

@@ -13,7 +13,7 @@
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
set -euo pipefail set -euo pipefail
VERSION="${1:-0.11.21}" VERSION="${1:-0.11.22}"
ACTION="${2:-}" ACTION="${2:-}"
REGISTRY="${REGISTRY:-}" REGISTRY="${REGISTRY:-}"
IMAGE_NAME="jama" IMAGE_NAME="jama"

View File

@@ -1,6 +1,6 @@
{ {
"name": "jama-frontend", "name": "jama-frontend",
"version": "0.11.21", "version": "0.11.22",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -47,7 +47,24 @@ export default function MessageInput({ group, replyTo, onCancelReply, onSend, on
return () => document.removeEventListener('mousedown', handler); return () => document.removeEventListener('mousedown', handler);
}, []); }, []);
// Handle typing notification // Reset input state when switching to a different conversation
useEffect(() => {
setText('');
setImageFile(null);
setImagePreview(null);
setLinkPreview(null);
setMentionSearch('');
setMentionResults([]);
setShowMention(false);
wasTyping.current = false;
onTextChange?.('');
if (inputRef.current) {
inputRef.current.style.height = 'auto';
inputRef.current.style.overflowY = 'hidden';
}
}, [group?.id]); // eslint-disable-line react-hooks/exhaustive-deps
const handleTypingChange = (value) => { const handleTypingChange = (value) => {
if (value && !wasTyping.current) { if (value && !wasTyping.current) {
wasTyping.current = true; wasTyping.current = true;