Add chatroom discovery logic
Change-Id: I1b65b7bbcf321c51cb00e8d1c05a42291601a284
diff --git a/src/digest-tree-scene.cpp b/src/digest-tree-scene.cpp
index a253384..07e5dea 100644
--- a/src/digest-tree-scene.cpp
+++ b/src/digest-tree-scene.cpp
@@ -47,7 +47,7 @@
// std::cout << "processUpdate v[" << i << "]: " << prefix.toStdString() << std::endl;
rePlot = true;
DisplayUserPtr p(new DisplayUser());
- time_t tempTime = ::time(NULL) - FRESHNESS + 1;
+ time_t tempTime = ::time(0) + 1;
p->setReceived(tempTime);
p->setPrefix(prefix);
p->setSeq(v[i].high);
@@ -115,7 +115,7 @@
// std::cout << "Updating for prefix = " << prefix.toStdString() <<
// " nick = " << nick.toStdString() << std::endl;
DisplayUserPtr p = it.value();
- p->setReceived(::time(NULL));
+ p->setReceived(::time(0) + 1);
if (nick != p->getNick()) {
// std::cout << "old nick = " << p->getNick().toStdString() << std::endl;
p->setNick(nick);