From 4e8af83e41bfd4a59001017b48ca3b9a65424fc2 Mon Sep 17 00:00:00 2001 From: ajvpot <553597+ajvpot@users.noreply.github.com> Date: Sat, 23 Aug 2025 00:53:55 +0200 Subject: [PATCH] add origin pubkey prefix --- src/components/ChatMessageItem.tsx | 11 +++++++---- src/lib/clickhouse/actions.ts | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) 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 = () => (