Changeset - c358589ec5c0
[Not reviewed]
0 1 0
Jan Kaluza - 9 years ago 2016-02-01 10:08:18
jkaluza@redhat.com
Slack: Ignore purpose messages for now
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
spectrum/src/frontends/slack/SlackRTM.cpp
Show inline comments
 
@@ -107,6 +107,7 @@ void SlackRTM::handlePayloadReceived(const std::string &payload) {
 
		STORE_STRING(d, text);
 
		STORE_STRING(d, ts);
 
		STORE_STRING_OPTIONAL(d, subtype);
 
		STORE_STRING_OPTIONAL(d, purpose);
 

	
 
		rapidjson::Value &attachments = d["attachments"];
 
		if (attachments.IsArray()) {
 
@@ -129,6 +130,9 @@ void SlackRTM::handlePayloadReceived(const std::string &payload) {
 
		}
 
		else if (subtype == "channel_join") {
 
			
 
		}
 
		else if (!purpose.empty()) {
 
			
 
		}
 
		else {
 
			STORE_STRING(d, user);
0 comments (0 inline, 0 general)