From e031f85447718f162b6dbecb5bae90665628b334 Mon Sep 17 00:00:00 2001 From: Haris Amin Date: Sat, 21 May 2016 01:16:34 -0400 Subject: [PATCH] Fixes parsing of Reaction from Message response. It now properly adds users to a parsed Reaction --- SlackKit/Sources/Message.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SlackKit/Sources/Message.swift b/SlackKit/Sources/Message.swift index e50cda3..763dd44 100644 --- a/SlackKit/Sources/Message.swift +++ b/SlackKit/Sources/Message.swift @@ -94,11 +94,7 @@ public class Message { private func messageReactions(reactions: [[String: AnyObject]]?) -> [String: Reaction] { var returnValue = [String: Reaction]() if let r = reactions { - for react in r { - if let reaction = Reaction(reaction: react), reactionName = reaction.name { - returnValue[reactionName] = reaction - } - } + returnValue = Reaction.reactionsFromArray(r) } return returnValue }