Skip to content

Commit

Permalink
- fix: removed unused case
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Oct 4, 2023
1 parent 56fb0df commit a55d6c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/shinkai-message-ts/src/utils/shinkai_message_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ export const isLocalMessage = (
myProfile: string,
): boolean => {
const messageNameWrapper = ShinkaiNameWrapper.from_shinkai_message_sender(message);
return messageNameWrapper.get_subidentity_type === 'None' || messageNameWrapper.get_subidentity_type === 'device' &&
messageNameWrapper.get_node_name === myNodeIdentity && messageNameWrapper.get_profile_name === myProfile;
return messageNameWrapper.get_node_name === myNodeIdentity && messageNameWrapper.get_profile_name === myProfile;
};

0 comments on commit a55d6c2

Please sign in to comment.