added missing questionmark lol

This commit is contained in:
Rye committed 2026-03-18 22:49:55 +01:00
1 parent cee2cb6118
commit aaa802606d
2 files changed
+4 -1

No files matched your search

@@ -21,6 +21,7 @@ import { FALLBACK_MIMETYPE, getBlobSafeMimeType } from '$utils/mimeTypes';
import { parseGeoUri, scaleYDimension } from '$utils/common';
import { useSetting } from '$state/hooks/settings';
import { settingsAtom } from '$state/settings';
import { PerMessageProfileBeeperFormat } from '$hooks/usePerMessageProfile';
import { Attachment, AttachmentBox, AttachmentContent, AttachmentHeader } from './attachment';
import { FileHeader, FileDownloadButton } from './FileHeader';
import {
@@ -135,7 +136,7 @@ export function MText({ edited, content, renderBody, renderUrlsPreview, style }:
const urlsMatch = renderUrlsPreview && trimmedBody.match(URL_REG);
const urls = urlsMatch ? [...new Set(urlsMatch)] : undefined;
if (content['com.beeper.per_message_profile']) {
if ((content['com.beeper.per_message_profile'] as PerMessageProfileBeeperFormat)?.has_fallback) {
// unwrap per-message profile fallback if present
return (
<MessageTextBody preWrap={typeof customBody !== 'string'} style={style}>
+2
View File
@@ -50,6 +50,7 @@ export type PerMessageProfileBeeperFormat = {
* using the unstable prefix for pronouns, under which it is also stored in profiles
*/
'io.fsky.nyx.pronouns'?: PronounSet[];
has_fallback: boolean;
};
/**
@@ -67,6 +68,7 @@ export function convertPerMessageProfileToBeeperFormat(
displayname: profile.name,
avatar_url: profile.avatarUrl,
'io.fsky.nyx.pronouns': profile.pronouns,
has_fallback: true,
};
}