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; parentSenderName: string;
reactions: MessageReaction[]; reactions: MessageReaction[];
myUserId: string | null; myUserId: string | null;
ownDeviceId: string | null;
ownPrivateKey: Uint8Array | null; ownPrivateKey: Uint8Array | null;
onLongPress: () => void; onLongPress: () => void;
onToggleReaction: (emoji: string) => void; onToggleReaction: (emoji: string) => void;
@@ -36,7 +35,6 @@ export function MessageBubble({
parentSenderName, parentSenderName,
reactions, reactions,
myUserId, myUserId,
ownDeviceId,
ownPrivateKey, ownPrivateKey,
onLongPress, onLongPress,
onToggleReaction, onToggleReaction,
@@ -72,12 +70,8 @@ export function MessageBubble({
) : ( ) : (
<> <>
{text.length > 0 && <Text style={styles.body}>{text}</Text>} {text.length > 0 && <Text style={styles.body}>{text}</Text>}
{firstImage && ownDeviceId && ownPrivateKey && ( {firstImage && ownPrivateKey && (
<AttachmentImage <AttachmentImage handle={firstImage} />
handle={firstImage}
ownDeviceId={ownDeviceId}
ownPrivateKey={ownPrivateKey}
/>
)} )}
</> </>
)} )}