From 997e9b168d362a50cdcdc82c6cc3488a6852737a Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 3 Feb 2026 18:29:18 +0100 Subject: Load conversations dynamically --- yc.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'yc.cpp') diff --git a/yc.cpp b/yc.cpp index fc132c1..08bcb31 100644 --- a/yc.cpp +++ b/yc.cpp @@ -147,18 +147,22 @@ void Yc::storeMessage(const QXmppMessage &msg, const Direction dir) const storeMessage(msg.from(), msg.to(), msg.body(), msg.stamp(), dir); } -void Yc::retrieveConversations() const +void Yc::retrieveConversations() { -#if 0 for (const auto c : clients) { const auto &db = c->database(); for (const auto &conv : db.conversations()) + { +#if 0 new Conversation(db.jid, conv.to, ui.conversations_list, conv.last_msg, conv.dt); - } +#else + emit newConversation(conv.to); #endif + } + } } void Yc::init() -- cgit v1.2.3