Skip to content

Commit 6d8226d

Browse files
committed
fix: do not use localMessages, because of backward issue
1 parent 8b24ed1 commit 6d8226d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/modules/Channel/components/MessageList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const MessageList: React.FC<MessageListProps> = ({
200200
</MessageProvider>
201201
);
202202
})}
203-
{localMessages.map((m, idx) => {
203+
{/* {localMessages.map((m, idx) => {
204204
const {
205205
chainTop,
206206
chainBottom,
@@ -225,7 +225,7 @@ const MessageList: React.FC<MessageListProps> = ({
225225
/>
226226
</MessageProvider>
227227
);
228-
})}
228+
})} */}
229229
{/* show frozen notifications */}
230230
{/* show new message notifications */}
231231
</div>

src/modules/Channel/context/ChannelProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ const ChannelProvider: React.FC<ChannelContextProps> = (props: ChannelContextPro
475475
onMessageHighlighted,
476476

477477
// messagesStore
478-
allMessages,
479-
localMessages,
478+
allMessages: [...allMessages, ...localMessages],
479+
// localMessages,
480480
loading,
481481
initialized,
482482
unreadSince,

0 commit comments

Comments
 (0)