mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
Fake Nitro Transform Stickers option and other stuff (#683)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
99391a4f0e
commit
12ffb9d642
4 changed files with 269 additions and 76 deletions
|
@ -77,13 +77,8 @@ enum ChannelFlags {
|
|||
REQUIRE_TAG = 1 << 4
|
||||
}
|
||||
|
||||
let EmojiComponent: ComponentType<any>;
|
||||
let ChannelBeginHeader: ComponentType<any>;
|
||||
|
||||
export function setEmojiComponent(component: ComponentType<any>) {
|
||||
EmojiComponent = component;
|
||||
}
|
||||
|
||||
export function setChannelBeginHeaderComponent(component: ComponentType<any>) {
|
||||
ChannelBeginHeader = component;
|
||||
}
|
||||
|
@ -245,11 +240,10 @@ function HiddenChannelLockScreen({ channel }: { channel: ExtendedChannel; }) {
|
|||
{defaultReactionEmoji != null &&
|
||||
<div className="shc-lock-screen-default-emoji-container">
|
||||
<Text variant="text-md/normal">Default reaction emoji:</Text>
|
||||
<EmojiComponent node={{
|
||||
type: defaultReactionEmoji.emojiName ? "emoji" : "customEmoji",
|
||||
{Parser.defaultRules[defaultReactionEmoji.emojiName ? "emoji" : "customEmoji"].react({
|
||||
name: defaultReactionEmoji.emojiName ?? "",
|
||||
emojiId: defaultReactionEmoji.emojiId
|
||||
}} />
|
||||
})}
|
||||
</div>
|
||||
}
|
||||
{channel.hasFlag(ChannelFlags.REQUIRE_TAG) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue