File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7878 "path" : " 0.12.7" ,
7979 "react-native-markdown-package" : " 1.8.2" ,
8080 "react-native-url-polyfill" : " ^1.3.0" ,
81- "stream-chat" : " 8.44.0 "
81+ "stream-chat" : " 8.45.1 "
8282 },
8383 "peerDependencies" : {
8484 "react-native-quick-sqlite" : " >=5.1.0" ,
Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ export const isBouncedMessage = <
9494 StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
9595> (
9696 message : MessageType < StreamChatGenerics > ,
97- ) => message . type === 'error' && message . moderation_details !== undefined ;
97+ ) =>
98+ ( message . type === 'error' &&
99+ message ?. moderation_details ?. action === 'MESSAGE_RESPONSE_ACTION_BOUNCE' ) ||
100+ message ?. moderation ?. action === 'bounce' ;
98101
99102/**
100103 * Utility to check if the message is a edited message.
You can’t perform that action at this time.
0 commit comments