diff --git a/src/components/ChatMessageItem.tsx b/src/components/ChatMessageItem.tsx index 0e2c305..c18bd98 100644 --- a/src/components/ChatMessageItem.tsx +++ b/src/components/ChatMessageItem.tsx @@ -12,7 +12,7 @@ export interface ChatMessage { mac: string; encrypted_message: string; message_count: number; - origin_path_array: Array<[string, string]>; // Array of [origin, path] tuples + origin_key_path_array: Array<[string, string, string]>; // Array of [origin, pubkey, path] tuples } function formatHex(hex: string): string { @@ -65,8 +65,8 @@ export default function ChatMessageItem({ msg, showErrorRow }: { msg: ChatMessag return () => { cancelled = true; }; }, [msg.encrypted_message, msg.mac, msg.channel_hash, knownKeysString, knownKeys]); - const originPathArray = msg.origin_path_array && msg.origin_path_array.length > 0 ? msg.origin_path_array : []; - const originsCount = originPathArray.length; + const originKeyPathArray = msg.origin_key_path_array && msg.origin_key_path_array.length > 0 ? msg.origin_key_path_array : []; + const originsCount = originKeyPathArray.length; const OriginsBox = () => (