Respond to MAM requests on a channel JID

At the moment, result-set-management is not implemented, the whole history
(well, at most 1024 messages) is returned.
This commit is contained in:
louiz’
2016-08-28 22:42:50 +02:00
parent b59fc2a834
commit 7536a1b3f3
11 changed files with 176 additions and 30 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ public:
}
std::string full() const
{
return this->local + "@" + this->domain + "/" + this->resource;
std::string res = this->domain;
if (!this->local.empty())
res = this->local + "@" + this->domain;
if (!this->resource.empty())
res += "/" + this->resource;
return res;
}
};