Skip to content

Commit

Permalink
fix: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswinder.khartri@fetch.ai committed Feb 13, 2024
1 parent a9cbbaa commit 4bc0b83
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,18 @@ export const GroupChatsViewSection = observer(
setUserGroupAddress(currentUser);

const init = async () => {
if (currentUser?.removedAt) {
/// receive last updated message as message subscription not called
await recieveMessages(
groupId,
null,
0,
false,
groupId,
user.accessToken,
chatStore.messagesStore
);
}
init();
/// receive last updated message as message subscription not called
await recieveMessages(
groupId,
null,
0,
false,
groupId,
user.accessToken,
chatStore.messagesStore
);
};
if (currentUser?.removedAt) init();
}, [userGroups]);

const messagesEndRef: any = useCallback(
Expand Down

0 comments on commit 4bc0b83

Please sign in to comment.