Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 3ed139b

Browse files
committed
Merge pull request #33 from hamin/fix-message-reactions-parsing
Fixes parsing of Reaction from Message response. It now properly adds…
2 parents a4d9083 + e031f85 commit 3ed139b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

SlackKit/Sources/Message.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ public class Message {
9494
private func messageReactions(reactions: [[String: AnyObject]]?) -> [String: Reaction] {
9595
var returnValue = [String: Reaction]()
9696
if let r = reactions {
97-
for react in r {
98-
if let reaction = Reaction(reaction: react), reactionName = reaction.name {
99-
returnValue[reactionName] = reaction
100-
}
101-
}
97+
returnValue = Reaction.reactionsFromArray(r)
10298
}
10399
return returnValue
104100
}

0 commit comments

Comments
 (0)