v0.4.12 - Refactor NIP-17 admin commands: eliminate ~400 lines of duplicated code with unified helper functions, fix SQL query bugs, and remove unused parameters

This commit is contained in:
Your Name
2025-10-06 18:49:25 -04:00
parent f6d13d4318
commit d655258311
6 changed files with 341 additions and 341 deletions

View File

@@ -3078,10 +3078,14 @@
messageDiv.className = 'log-entry';
const directionColor = direction === 'sent' ? '#007bff' : '#28a745';
// Convert newlines to <br> tags for proper HTML display
const formattedMessage = message.replace(/\n/g, '<br>');
messageDiv.innerHTML = `
<span class="log-timestamp">${timestamp}</span>
<span style="color: ${directionColor}; font-weight: bold;">[${direction.toUpperCase()}]</span>
${message}
<span style="white-space: pre-wrap;">${formattedMessage}</span>
`;
// Remove the "No messages received yet" placeholder if it exists