diff --git a/frontend/package.json b/frontend/package.json index 82366b01c..df464669b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,7 +2,7 @@ "name": "raven-ui", "private": true, "license": "AGPL-3.0-only", - "version": "1.7.0", + "version": "1.7.1", "type": "module", "scripts": { "dev": "vite", @@ -60,7 +60,7 @@ "turndown": "^7.2.0", "use-double-tap": "^1.3.6", "vaul": "^0.9.1", - "vite": "^4.5.2", + "vite": "^4.5.5", "vite-plugin-pwa": "^0.20.0", "vite-plugin-svgr": "^4.2.0" }, diff --git a/frontend/src/components/feature/chat/ChatInput/Tiptap.tsx b/frontend/src/components/feature/chat/ChatInput/Tiptap.tsx index 5eae63cf3..28c576057 100644 --- a/frontend/src/components/feature/chat/ChatInput/Tiptap.tsx +++ b/frontend/src/components/feature/chat/ChatInput/Tiptap.tsx @@ -127,6 +127,7 @@ const Tiptap = ({ isEdit, slotBefore, fileProps, onMessageSend, channelMembers, .then(() => { this.editor.commands.clearContent(true); this.editor.setEditable(true) + this.editor.commands.focus('start') }) .catch(() => { this.editor.setEditable(true) diff --git a/frontend/src/components/feature/chat/ChatStream/useChatStream.ts b/frontend/src/components/feature/chat/ChatStream/useChatStream.ts index dd21778c2..49a55b201 100644 --- a/frontend/src/components/feature/chat/ChatStream/useChatStream.ts +++ b/frontend/src/components/feature/chat/ChatStream/useChatStream.ts @@ -5,6 +5,7 @@ import { Message } from '../../../../../../types/Messaging/Message' import { getDateObject } from '@/utils/dateConversions/utils' import { useDebounce } from '@/hooks/useDebounce' import { UserContext } from '@/utils/auth/UserProvider' +import { useIsMobile } from '@/hooks/useMediaQuery' interface GetMessagesResponse { message: { @@ -29,6 +30,8 @@ const useChatStream = (channelID: string, scrollRef: MutableRefObject { if (!highlightedMessage) { if (!data.message.has_new_messages) { diff --git a/package.json b/package.json index c10769ea4..c356c2482 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "raven", - "version": "1.7.0", + "version": "1.7.1", "description": "Messaging Application", "workspaces": [ "frontend" diff --git a/raven/__init__.py b/raven/__init__.py index 14d9d2f58..3c1e9cbd3 100644 --- a/raven/__init__.py +++ b/raven/__init__.py @@ -1 +1 @@ -__version__ = "1.7.0" +__version__ = "1.7.1" diff --git a/raven/package.json b/raven/package.json index 0af8618f9..26b6aa663 100644 --- a/raven/package.json +++ b/raven/package.json @@ -1,6 +1,6 @@ { "name": "raven-app", - "version": "1.7.0", + "version": "1.7.1", "description": "", "main": "index.js", "scripts": { diff --git a/yarn.lock b/yarn.lock index 41e27ddd1..359e72f1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4494,9 +4494,9 @@ merge2@^1.3.0: integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== micromatch@^4.0.4, micromatch@^4.0.5: - version "4.0.7" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5" - integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q== + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: braces "^3.0.3" picomatch "^2.3.1" @@ -5860,10 +5860,10 @@ vite-plugin-svgr@^4.2.0: "@svgr/core" "^8.1.0" "@svgr/plugin-jsx" "^8.1.0" -vite@^4.5.2: - version "4.5.3" - resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.3.tgz#d88a4529ea58bae97294c7e2e6f0eab39a50fb1a" - integrity sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg== +vite@^4.5.5: + version "4.5.5" + resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.5.tgz#639b9feca5c0a3bfe3c60cb630ef28bf219d742e" + integrity sha512-ifW3Lb2sMdX+WU91s3R0FyQlAyLxOzCSCP37ujw0+r5POeHPwe6udWVIElKQq8gk3t7b8rkmvqC6IHBpCff4GQ== dependencies: esbuild "^0.18.10" postcss "^8.4.27"