Skip to content

Commit

Permalink
Merge pull request #1063 from The-Commit-Company/develop
Browse files Browse the repository at this point in the history
Release v1.7.1
  • Loading branch information
nikkothari22 authored Sep 18, 2024
2 parents 08e8035 + 625072b commit 6221f7b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/feature/chat/ChatInput/Tiptap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -29,6 +30,8 @@ const useChatStream = (channelID: string, scrollRef: MutableRefObject<HTMLDivEle
const navigate = useNavigate()
const { state } = location

const isMobile = useIsMobile()

const { currentUser } = useContext(UserContext)


Expand Down Expand Up @@ -70,7 +73,7 @@ const useChatStream = (channelID: string, scrollRef: MutableRefObject<HTMLDivEle
'channel_id': channelID,
'base_message': state?.baseMessage ? state.baseMessage : undefined
}, { path: `get_messages_for_channel_${channelID}`, baseMessage: state?.baseMessage }, {
revalidateOnFocus: true,
revalidateOnFocus: isMobile ? true : false,
onSuccess: (data) => {
if (!highlightedMessage) {
if (!data.message.has_new_messages) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "raven",
"version": "1.7.0",
"version": "1.7.1",
"description": "Messaging Application",
"workspaces": [
"frontend"
Expand Down
2 changes: 1 addition & 1 deletion raven/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.7.0"
__version__ = "1.7.1"
2 changes: 1 addition & 1 deletion raven/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raven-app",
"version": "1.7.0",
"version": "1.7.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6221f7b

Please sign in to comment.