Changeset - fb5ef23e1082
[Not reviewed]
0 1 0
Jan Kaluza - 9 years ago 2016-02-02 10:49:17
jkaluza@redhat.com
SlackAPI: Do not check for is_primary_owner
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
spectrum/src/frontends/slack/SlackAPI.cpp
Show inline comments
 
@@ -312,26 +312,26 @@ void SlackAPI::getSlackUserInfo(HTTPRequest *req, bool ok, rapidjson::Document &
 
		if (!users[i].IsObject()) {
 
			continue;
 
		}
 

	
 
		SlackUserInfo info;
 

	
 
		STORE_STRING(users[i], id);
 
		info.id = id;
 

	
 
		STORE_STRING(users[i], name);
 
		info.name = name;
 

	
 
		STORE_BOOL(users[i], is_primary_owner);
 
		info.isPrimaryOwner = is_primary_owner;
 
// 		STORE_BOOL(users[i], is_primary_owner);
 
		info.isPrimaryOwner = false;
 

	
 
		ret[info.id] = info;
 
		LOG4CXX_INFO(logger, info.id << " " << info.name);
 

	
 
		GET_OBJECT(users[i], profile);
 
		STORE_STRING_OPTIONAL(profile, bot_id);
 
		if (!bot_id.empty()) {
 
			ret[bot_id] = info;
 
			LOG4CXX_INFO(logger, bot_id << " " << info.name);
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)