Skip to content

Commit

Permalink
fix: for requests for receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
pritipsingh committed Feb 9, 2024
1 parent 1d4622c commit 49d6bfc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,11 @@ export const ChatPreviewList: React.FC<IChatPreviewListProps> = (
chatRequestStream.constructor === Object
) {
console.debug('Chat request stream', chatRequestStream);
if (options.listType === CONSTANTS.CHAT.LIST_TYPE.CHATS) {
if (options.listType === CONSTANTS.CHAT.LIST_TYPE.CHATS && chatRequestStream.origin === "self") {
console.debug('to transform stream')
transformStreamMessage(chatRequestStream);
}else if(options.listType === CONSTANTS.CHAT.LIST_TYPE.REQUESTS && chatRequestStream.origin === "other" ){
transformStreamMessage(chatRequestStream);
}
}
}, [chatRequestStream]);
Expand Down

0 comments on commit 49d6bfc

Please sign in to comment.