|
|
|
@ -56,12 +56,12 @@ export default definePlugin({
|
|
|
|
|
find: ".UserProfileSections.USER_INFO_CONNECTIONS:",
|
|
|
|
|
replacement: {
|
|
|
|
|
match: /(?<={user:(\i),onClose:(\i)}\);)(?=case \i\.\i\.MUTUAL_FRIENDS)/,
|
|
|
|
|
replace: "case \"MUTUAL_GDMS\":return $self.renderMutualGDMs($1,$2);"
|
|
|
|
|
replace: "case \"MUTUAL_GDMS\":return $self.renderMutualGDMs({user: $1, onClose: $2});"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
renderMutualGDMs: ErrorBoundary.wrap((user: User, onClose: () => void) => {
|
|
|
|
|
renderMutualGDMs: ErrorBoundary.wrap(({ user, onClose }: { user: User, onClose: () => void; }) => {
|
|
|
|
|
const entries = ChannelStore.getSortedPrivateChannels().filter(c => c.isGroupDM() && c.recipients.includes(user.id)).map(c => (
|
|
|
|
|
<Clickable
|
|
|
|
|
className={ProfileListClasses.listRow}
|
|
|
|
|