File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
package/src/components/Channel Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ import { ChannelUnreadState, FileTypes } from '../../types/types';
9595import { addReactionToLocalState } from '../../utils/addReactionToLocalState' ;
9696import { compressedImageURI } from '../../utils/compressImage' ;
9797import { patchMessageTextCommand } from '../../utils/patchMessageTextCommand' ;
98- import { removeReactionFromLocalState } from '../../utils/removeReactionFromLocalState' ;
9998import { removeReservedFields } from '../../utils/removeReservedFields' ;
10099import {
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 }
You can’t perform that action at this time.
0 commit comments