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