Changeset - 7a63ea9e0e6a
[Not reviewed]
0 1 0
Sebastian Krzyszkowiak - 7 years ago 2018-04-05 14:04:44
dos@dosowisko.net
libtransport: set active chat state on conversation message

Not setting it violated XEP-0085 and sometimes tricked other clients
into thinking that Spectrum does not understand chat states.

Closes #282
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
libtransport/NetworkPluginServer.cpp
Show inline comments
 
@@ -694,6 +694,8 @@ void NetworkPluginServer::handleConvMessagePayload(const std::string &data, bool
 
		msg->setType(Swift::Message::Headline);
 
	}
 

	
 
        msg->addPayload(SWIFTEN_SHRPTR_NAMESPACE::make_shared<Swift::ChatState>(Swift::ChatState::Active));
 

	
 
	// Add xhtml-im payload.
 
	if (CONFIG_BOOL(m_config, "service.enable_xhtml") && !payload.xhtml().empty()) {
 
		msg->addPayload(SWIFTEN_SHRPTR_NAMESPACE::make_shared<Swift::XHTMLIMPayload>(payload.xhtml()));
0 comments (0 inline, 0 general)