diff options
author | Roger Planas <roger.planas@isode.com> | 2016-02-08 11:36:14 (GMT) |
---|---|---|
committer | Kevin Smith <kevin.smith@isode.com> | 2016-02-10 12:04:05 (GMT) |
commit | dcfe31ce3055f3af7e3b617752d9c9fd16672569 (patch) | |
tree | afa05b40b63f96a7d3cefd4edd58c7c9f7d0c505 /Swiften/Serializer/MessageSerializer.h | |
parent | 59c64a11e0bceca4876ba69ef2f30519629b108c (diff) | |
download | swift-dcfe31ce3055f3af7e3b617752d9c9fd16672569.zip swift-dcfe31ce3055f3af7e3b617752d9c9fd16672569.tar.bz2 |
Sluift: Ensure that message event body is retrieved correctly
As a result of commit "Change stanza body to boost::optional<std::string> type"
(commit 1b9ccc1fef6104eaf951153ddccdc6bb15899e9a), Sluift was not
populating the 'body' part of the message event, casting it to a bool instead.
By adding get_value_or("") to that body part, the actual body value
is retrieved, and the message event ends up containing the right information.
Test-Information:
Without the patch, Sluift's message event body is 'true'.
With the patch, Sluift's message event body contains the actual message.
Component messages also tested and event body as expected.
Change-Id: I366202aa5bf28a3315a81d909ea08f0933aa06d7
Diffstat (limited to 'Swiften/Serializer/MessageSerializer.h')
0 files changed, 0 insertions, 0 deletions