diff --git a/Sources/AblyChat/RoomReactions.swift b/Sources/AblyChat/RoomReactions.swift index e59e0fc8..bd75d47f 100644 --- a/Sources/AblyChat/RoomReactions.swift +++ b/Sources/AblyChat/RoomReactions.swift @@ -1,11 +1,19 @@ import Ably public protocol RoomReactions: AnyObject, Sendable, EmitsDiscontinuities { - func send(params: RoomReactionParams) async throws + func send(params: SendReactionParams) async throws func subscribe(bufferingPolicy: BufferingPolicy) -> Subscription var channel: ARTRealtimeChannelProtocol { get } } -public struct RoomReactionParams: Sendable { - public init() {} +public struct SendReactionParams: Sendable { + public var type: String + public var metadata: ReactionMetadata? + public var headers: ReactionHeaders? + + public init(type: String, metadata: ReactionMetadata? = nil, headers: ReactionHeaders? = nil) { + self.type = type + self.metadata = metadata + self.headers = headers + } }