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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user