Skip to content

Commit

Permalink
Addressed review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Dec 10, 2024
1 parent 76c368f commit 189ab8c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Sources/AblyChat/Presence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,21 @@ public protocol Presence: AnyObject, Sendable, EmitsDiscontinuities {
func leave(data: PresenceData?) async throws

/**
* Subscribes a given listener to a particular presense event in the chat room.
* Subscribes a given listener to a particular presence event in the chat room.
*
* - Parameters:
* - event: A single presense event type ``PresenceEventType`` to subscribe to.
* - event: A single presence event type ``PresenceEventType`` to subscribe to.
* - bufferingPolicy: The ``BufferingPolicy`` for the created subscription.
*
* - Returns: A subscription `AsyncSequence` that can be used to iterate through ``PresenceEvent`` events.
*/
func subscribe(event: PresenceEventType, bufferingPolicy: BufferingPolicy) async -> Subscription<PresenceEvent>

/**
* Subscribes a given listener to different presense events in the chat room.
* Subscribes a given listener to different presence events in the chat room.
*
* - Parameters:
* - events: An array of presense event types ``PresenceEventType`` to subscribe to.
* - events: An array of presence event types ``PresenceEventType`` to subscribe to.
* - bufferingPolicy: The ``BufferingPolicy`` for the created subscription.
*
* - Returns: A subscription `AsyncSequence` that can be used to iterate through ``PresenceEvent`` events.
Expand Down
16 changes: 8 additions & 8 deletions Sources/AblyChat/RoomOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ import Foundation
*/
public struct RoomOptions: Sendable, Equatable {
/**
* The presence options for the room. To enable presence in the room, set this property. You may
* use ``RoomOptions/allFeaturesEnabled`` to enable presence with default options.
* The presence options for the room. To enable presence in the room, set this property.
* Alternatively, you may use ``RoomOptions/allFeaturesEnabled`` to enable presence with the default options.
*/
public var presence: PresenceOptions?

/**
* The typing options for the room. To enable typing in the room, set this property. You may
* use ``RoomOptions/allFeaturesEnabled`` to enable typing with default options.
* The typing options for the room. To enable typing in the room, set this property.
* Alternatively, you may use ``RoomOptions/allFeaturesEnabled`` to enable typing with the default options.
*/
public var typing: TypingOptions?

/**
* The reactions options for the room. To enable reactions in the room, set this property. You may
* use ``RoomOptions/allFeaturesEnabled`` to enable reactions with default options.
* The reactions options for the room. To enable reactions in the room, set this property.
* Alternatively, you may use ``RoomOptions/allFeaturesEnabled`` to enable reactions with the default options.
*/
public var reactions: RoomReactionsOptions?

/**
* The occupancy options for the room. To enable occupancy in the room, set this property. You may
* use ``RoomOptions/allFeaturesEnabled`` to enable occupancy with default options.
* The occupancy options for the room. To enable occupancy in the room, set this property.
* Alternatively, you may use ``RoomOptions/allFeaturesEnabled`` to enable occupancy with the default options.
*/
public var occupancy: OccupancyOptions?

Expand Down
2 changes: 1 addition & 1 deletion Sources/AblyChat/Typing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public protocol Typing: AnyObject, Sendable, EmitsDiscontinuities {
* contains a list of userIds who are currently typing.
*
* The timeout is configurable through the ``TypingOptions/timeout`` parameter.
* If the current user is already typing, it will reset the timer and being counting down again without emitting a new event.
* If the current user is already typing, it will reset the timer and begin counting down again without emitting a new event.
*
* - Throws: An `ARTErrorInfo`.
*/
Expand Down

0 comments on commit 189ab8c

Please sign in to comment.