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 }