Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content user-scalable=no"
/>
<meta name="google" content="notranslate" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />

<!-- possible content values: default, black or black-translucent -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />

<title>KONECT</title>
</head>
<body>
Expand Down
4 changes: 1 addition & 3 deletions src/pages/Chat/ChatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ function ChatRoom() {
const messagesEndRef = useRef<HTMLDivElement>(null);
const topRef = useInfiniteScroll(fetchNextPage, hasNextPage, isFetchingNextPage, { threshold: 0.1 });

const sortedMessages = [...chatMessages].sort(
(a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime()
);
const sortedMessages = [...chatMessages].reverse();

const handleChange = (e: ChangeEvent<HTMLTextAreaElement>) => {
const textarea = e.target;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const useGetCouncilNoticeDetail = ({ noticeId }: UseGetCouncilNoticeDetai
patchedRef.current = noticeId;

queryClient.setQueriesData<InfiniteData<NoticeResponse>>({ queryKey: councilQueryKeys.all }, (old) => {
if (!old) return old;
if (!old || !old.pages) return old;

let changed = false;

Expand Down