GetStream / stream-swift

Swift client for Stream API
https://getstream.io
BSD 3-Clause "New" or "Revised" License
35 stars 26 forks source link

Reaction with extraData can't be added #22

Closed b-onc closed 4 years ago

b-onc commented 4 years ago

What did you do?

Call

Client.shared.add(reactionTo: activityId, kindOf: "comment", extraData: Comment(text: "awesome post!"), userTypeOf: User.self) { result in /* ... */ }

as shown in docs

What did you expect to happen?

Work

What happened instead?

Compiler gives error Error: Extra argument 'extraData' in call

Additional context

Comment(text:) initializer needs to be made public for this to work!

b-onc commented 4 years ago

Fixed with #14