refactor(mobile): MessageBubble drops ownDeviceId prop
This commit is contained in:
@@ -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}
|
|
||||||
/>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user