summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-09-26 15:06:54 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-09-26 15:07:02 (GMT)
commit60823cd43ea17d8e06f3ae4a06f3c92d71fb00e5 (patch)
tree9e93a7198b5d56980c977c9eeda256747330e796 /Swiften/Elements
parent2680416456d722a4779322949f6ed230de3d422b (diff)
downloadswift-contrib-60823cd43ea17d8e06f3ae4a06f3c92d71fb00e5.zip
swift-contrib-60823cd43ea17d8e06f3ae4a06f3c92d71fb00e5.tar.bz2
Set/Update empty subjects
Resolves: #1000
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/Message.h4
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) {