MCPcopy
hub / github.com/yinxin630/fiora / getFriendId

Function getFriendId

packages/utils/getFriendId.ts:7–12  ·  view source on GitHub ↗
(userId1: string, userId2: string)

Source from the content-addressed store, hash-verified

5 * @param userId2 user id
6 */
7export default function getFriendId(userId1: string, userId2: string) {
8 if (userId1 < userId2) {
9 return userId1 + userId2;
10 }
11 return userId2 + userId1;
12}

Callers 7

reducer.spec.tsFile · 0.50
socket.tsFile · 0.50
UserInfoFunction · 0.50
handleLoginFunction · 0.50
handleRegisterFunction · 0.50
transformFriendFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected