feat: mentions in mixedInput

This commit is contained in:
zerosoul
2022-04-08 15:55:03 +08:00
parent 6aba558d8d
commit 79734fcc4d
4 changed files with 44 additions and 3 deletions
+7 -1
View File
@@ -150,7 +150,13 @@ export default function ChannelChat({ cid = "", dropFiles = [] }) {
})}
</div>
</div>
<Send key={cid} id={cid} type="channel" name={name} />
<Send
key={cid}
id={cid}
context="channel"
name={name}
members={memberIds}
/>
</div>
</StyledChannelChat>
{/* {unreads != 0 && (
+2
View File
@@ -71,6 +71,7 @@ export const renderPreviewMessage = (message = null) => {
return res;
};
export const renderMessageFragment = ({
isFirst = false,
read = true,
updateReadIndex,
prev = null,
@@ -95,6 +96,7 @@ export const renderMessageFragment = ({
<React.Fragment key={mid}>
{divider && <Divider content={divider}></Divider>}
<Message
isFirst={isFirst}
updateReadIndex={updateReadIndex}
read={read}
context={context}