Skip to content

Commit a1433cc

Browse files
committed
fix: move reaction removal updates to llc and update
1 parent 85fe679 commit a1433cc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ import { ChannelUnreadState, FileTypes } from '../../types/types';
9595
import { addReactionToLocalState } from '../../utils/addReactionToLocalState';
9696
import { compressedImageURI } from '../../utils/compressImage';
9797
import { patchMessageTextCommand } from '../../utils/patchMessageTextCommand';
98-
import { removeReactionFromLocalState } from '../../utils/removeReactionFromLocalState';
9998
import { removeReservedFields } from '../../utils/removeReservedFields';
10099
import {
101100
defaultEmojiSearchIndex,
@@ -1542,12 +1541,7 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
15421541
const payload: Parameters<ChannelClass['deleteReaction']> = [messageId, type];
15431542

15441543
if (enableOfflineSupport) {
1545-
removeReactionFromLocalState({
1546-
channel,
1547-
messageId,
1548-
reactionType: type,
1549-
user: client.user,
1550-
});
1544+
channel.state.removeReaction({ created_at: '', message_id: messageId, type, updated_at: '' });
15511545

15521546
copyMessagesStateFromChannel(channel);
15531547
}

0 commit comments

Comments
 (0)