summaryrefslogtreecommitdiff
path: root/yc.cpp
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 18:29:18 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 18:29:18 +0100
commit997e9b168d362a50cdcdc82c6cc3488a6852737a (patch)
treefebf644d675ef07128f5c313e78a728a97aee89c /yc.cpp
parent0311bed34d80abe518f11838271e39d1615ebf67 (diff)
downloadyachat6-997e9b168d362a50cdcdc82c6cc3488a6852737a.tar.gz
Load conversations dynamically
Diffstat (limited to 'yc.cpp')
-rw-r--r--yc.cpp10
1 files changed, 7 insertions, 3 deletions
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()