refactor(mobile): MessageBubble drops ownDeviceId prop

This commit is contained in:
byGalax
2026-05-16 17:17:30 +02:00
parent cb7bd99fb4
commit 0354676d2f
+2 -8
View File
@@ -15,7 +15,6 @@ interface Props {
parentSenderName: string;
reactions: MessageReaction[];
myUserId: string | null;
ownDeviceId: string | null;
ownPrivateKey: Uint8Array | null;
onLongPress: () => void;
onToggleReaction: (emoji: string) => void;
@@ -36,7 +35,6 @@ export function MessageBubble({
parentSenderName,
reactions,
myUserId,
ownDeviceId,
ownPrivateKey,
onLongPress,
onToggleReaction,
@@ -72,12 +70,8 @@ export function MessageBubble({
) : (
<>
{text.length > 0 && <Text style={styles.body}>{text}</Text>}
{firstImage && ownDeviceId && ownPrivateKey && (
<AttachmentImage
handle={firstImage}
ownDeviceId={ownDeviceId}
ownPrivateKey={ownPrivateKey}
/>
{firstImage && ownPrivateKey && (
<AttachmentImage handle={firstImage} />
)}
</>
)}