diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Elements/Message.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Elements/Message.h b/Swiften/Elements/Message.h index 19e3fbb..3b9145c 100644 --- a/Swiften/Elements/Message.h +++ b/Swiften/Elements/Message.h @@ -38,6 +38,10 @@ namespace Swift { updatePayload(boost::make_shared<Subject>(subject)); } + bool hasSubject() { + return getPayload<Subject>(); + } + std::string getBody() const { boost::shared_ptr<Body> body(getPayload<Body>()); if (body) { |