()
| 49 | } |
| 50 | |
| 51 | function clearAllConversations() { |
| 52 | const ids = conversations.map((c) => c.id); |
| 53 | ids.forEach((id) => deleteConversation(id)); |
| 54 | setShowClearConfirm(false); |
| 55 | } |
| 56 | |
| 57 | const totalMessages = conversations.reduce((sum, c) => sum + c.messages.length, 0); |
| 58 |