Skip to content

Commit

Permalink
feat: add session fetching for enquiries again
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed Sep 8, 2021
1 parent 5576060 commit fc847c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/session/SessionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ export const SessionView = (props) => {
} else if (isCurrentAnonymousEnquiry) {
setIsLoading(false);
setIsAnonymousEnquiry(isCurrentAnonymousEnquiry);
} else if (!isEnquiry) {
} else if (isEnquiry) {
fetchSessionMessages();
} else {
window['socket'] = new rocketChatSocket();
fetchSessionMessages();
return () => {
Expand Down

0 comments on commit fc847c9

Please sign in to comment.