*/}
+ {feeds.map((mid, idx) => {
+ const curr = messageData[mid];
+ if (!curr) return null;
+ const isFirst = idx == 0;
+ const prev = isFirst ? null : messageData[feeds[idx - 1]];
+ return renderMessageFragment({
+ readonly: true,
+ selectMode: false,
+ prev,
+ curr,
+ contextId: cid,
+ context: "channel"
+ });
+ })}
+ >
+
);
}
diff --git a/src/routes/chat/Layout/index.tsx b/src/routes/chat/Layout/index.tsx
index 91173c83..119d1d77 100644
--- a/src/routes/chat/Layout/index.tsx
+++ b/src/routes/chat/Layout/index.tsx
@@ -2,16 +2,15 @@ import { useState, useRef, useEffect, FC, ReactElement } from "react";
import { useDrop } from "react-dnd";
import { NativeTypes } from "react-dnd-html5-backend";
import clsx from "clsx";
+
import ImagePreviewModal from "../../../common/component/ImagePreviewModal";
import Send from "../../../common/component/Send";
import Operations from "./Operations";
import useUploadFile from "../../../common/hook/useUploadFile";
-
import { useAppSelector } from "../../../app/store";
import LoginTip from "./LoginTip";
import useLicense from "../../../common/hook/useLicense";
import LicenseUpgradeTip from "./LicenseOutdatedTip";
-// import { useTranslation } from "react-i18next";
import DnDTip from "./DnDTip";
interface Props {
diff --git a/src/routes/chat/SessionList/index.tsx b/src/routes/chat/SessionList/index.tsx
index c57a20f4..9cd0cb0b 100644
--- a/src/routes/chat/SessionList/index.tsx
+++ b/src/routes/chat/SessionList/index.tsx
@@ -66,7 +66,7 @@ const SessionList: FC
= ({ tempSession }) => {
]);
return (
<>
-
+
{sessions.map((s) => {
const { key, type, id, mid = 0 } = s;
return (
diff --git a/src/routes/chat/index.tsx b/src/routes/chat/index.tsx
index f97efc53..3661b26d 100644
--- a/src/routes/chat/index.tsx
+++ b/src/routes/chat/index.tsx
@@ -54,7 +54,7 @@ function ChatPage() {
)}
{usersModalVisible && }
-