Changeset View
Changeset View
Standalone View
Standalone View
native/profile/relationship-list.react.js
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | if (searchInputText === '') { | ||||
}[routeName]; | }[routeName]; | ||||
} | } | ||||
const mergedUserInfos: { [id: string]: AccountUserInfo } = {}; | const mergedUserInfos: { [id: string]: AccountUserInfo } = {}; | ||||
for (const userInfo of serverSearchResults) { | for (const userInfo of serverSearchResults) { | ||||
mergedUserInfos[userInfo.id] = userInfo; | mergedUserInfos[userInfo.id] = userInfo; | ||||
} | } | ||||
for (const id of userStoreSearchResults) { | for (const id of userStoreSearchResults) { | ||||
const { username, avatar, relationshipStatus } = userInfos[id]; | const { username, relationshipStatus } = userInfos[id]; | ||||
if (username) { | if (username) { | ||||
mergedUserInfos[id] = { id, username, avatar, relationshipStatus }; | mergedUserInfos[id] = { id, username, relationshipStatus }; | ||||
} | } | ||||
} | } | ||||
const excludeUserIDsArray = currentTags | const excludeUserIDsArray = currentTags | ||||
.map(userInfo => userInfo.id) | .map(userInfo => userInfo.id) | ||||
.concat(viewerID || []); | .concat(viewerID || []); | ||||
const excludeUserIDs = new Set(excludeUserIDsArray); | const excludeUserIDs = new Set(excludeUserIDsArray); | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |