mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Merge branch 'dev'
This commit is contained in:
commit
9af91ed9fb
2 changed files with 1 additions and 40 deletions
|
@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
|||
|
||||
### Extra included plugins
|
||||
<details>
|
||||
<summary>152 additional plugins</summary>
|
||||
<summary>150 additional plugins</summary>
|
||||
|
||||
### All Platforms
|
||||
- AllCallTimers by MaxHerbold & D3SOX
|
||||
|
@ -58,7 +58,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
|||
- FrequentQuickSwitcher by Samwich
|
||||
- FriendshipRanks by Samwich
|
||||
- FriendTags by Samwich
|
||||
- FullUserInChatbox by sadan
|
||||
- GensokyoRadioRPC by RyanCaoDev & Prince527
|
||||
- GifCollections by Aria & Creations
|
||||
- GifRoulette by Samwich
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2024 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findComponentByCodeLazy } from "@webpack";
|
||||
|
||||
const NormalMessageComponent = findComponentByCodeLazy(".USER_MENTION)");
|
||||
|
||||
export default definePlugin({
|
||||
name: "FullUserInChatbox",
|
||||
description: "Puts the full user mention object in the chatbox",
|
||||
authors: [Devs.sadan],
|
||||
|
||||
patches: [
|
||||
{
|
||||
find: "#{intl::UNKNOWN_ROLE_PLACEHOLDER})]",
|
||||
replacement: {
|
||||
match: /(hidePersonalInformation.*?)return/,
|
||||
replace: "$1return $self.patchChatboxMention(arguments[0]);"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
patchChatboxMention(props: any) {
|
||||
return <NormalMessageComponent
|
||||
// this seems to be constant
|
||||
className="mention"
|
||||
userId={props.id}
|
||||
channelId={props.channelId}
|
||||
// this seems to always be false/undef
|
||||
inlinePreview={undefined}
|
||||
/>;
|
||||
},
|
||||
});
|
Loading…
Reference in a new issue