MCPcopy Create free account
hub / github.com/VadimNotJustDev/SignalClone / checkIfMe

Function checkIfMe

components/Message/Message.tsx:89–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88 useEffect(() => {
89 const checkIfMe = async () => {
90 if (!user) {
91 return;
92 }
93 const authUser = await Auth.currentAuthenticatedUser();
94 setIsMe(user.id === authUser.attributes.sub);
95 };
96 checkIfMe();
97 }, [user]);
98

Callers 1

MessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected