Skip to content

Commit

Permalink
fix: changes pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
pritipsingh committed Dec 1, 2023
1 parent 6f9cc4a commit 5e97f84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ export const ChatViewList: React.FC<IChatViewListProps> = (
await getMessagesCall();
})();
}
}, [conversationHash, pgpPrivateKey, account, env,chatFeed]);
}, [conversationHash, pgpPrivateKey, account, env,chatFeed, chatId]);

useEffect(() => {
scrollToBottom();
}, [conversationHash]);
}, [conversationHash, account, env, chatId, pgpPrivateKey, chatFeed,chatFeed ]);

useEffect(() => {
if (
Expand Down Expand Up @@ -387,7 +387,7 @@ export const ChatViewList: React.FC<IChatViewListProps> = (
}
)}
</Section>
{chatFeed &&
{Object.keys(chatFeed || {}).length &&
account &&
checkIfIntent({
chat: chatFeed as IFeeds,
Expand Down
2 changes: 1 addition & 1 deletion packages/uiweb/src/lib/hooks/chat/usePushChatSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const {fetchChatProfile} = useGetChatProfile();
pgpPrivateKey: pgpPrivateKey,
env: env,
});

if (response && response.length) {
setMessagesSinceLastConnection(response[0]);
}
Expand Down

0 comments on commit 5e97f84

Please sign in to comment.