This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,46 @@
// Metro module 15072 (f15073).
import { NativeModules } from "react-native";
import { getEmojiUrl } from "../../../../utils/EmojiUtils";
import { makeSource } from "../../../../utils/AvatarUtils";
export async function getEmojiSource(c27940_0, c27940_1) {
let r73;
let emojiUrl, name, c27940_5;
let c30836_1, c30836_0, c30836_2, c30836_3;
L21: {
c27940_5 = void 0;
c30836_1 = void 0;
c30836_0 = c27940_0;
if (c27940_1 !== void 0) {
c30836_1 = c27940_1;
c30836_2 = void 0;
c30836_3 = void 0;
} else {
c30836_1 = 32;
c30836_2 = void 0;
c30836_3 = void 0;
}
await void 0;
const name2 = c30836_0.name;
name = name2;
if (name2 == null) {
name = "";
}
const emojiUrl2 = getEmojiUrl({
name,
id: c30836_0.id,
animated: false
}, c30836_1);
emojiUrl = emojiUrl2;
if (emojiUrl2 == null) {
emojiUrl = "";
}
c30836_2 = emojiUrl;
if (c30836_2 !== "") {
r73 = makeSource(c30836_2);
break L21;
}
c30836_3 = await NativeModules.ImageManager.getEmojiBase64(c30836_0.name, c30836_1);
return makeSource(`data:image/png;base64,${c30836_3}`);
}
return r73;
}