diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-03 18:29:18 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-03 18:29:18 +0100 |
| commit | 997e9b168d362a50cdcdc82c6cc3488a6852737a (patch) | |
| tree | febf644d675ef07128f5c313e78a728a97aee89c /yc.cpp | |
| parent | 0311bed34d80abe518f11838271e39d1615ebf67 (diff) | |
| download | yachat6-997e9b168d362a50cdcdc82c6cc3488a6852737a.tar.gz | |
Load conversations dynamically
Diffstat (limited to 'yc.cpp')
| -rw-r--r-- | yc.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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() |
