Skip to content

Commit

Permalink
Fixed presence and reactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Dec 2, 2024
1 parent 8b6ada5 commit 9df13d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions content/chat/rooms/presence.textile
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ blang[javascript].
let isPresent = try await room.presence.isUserPresent(clientID: "clemons123")
```

blang[react].

blang[react].
Use the "@presenceData@":https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/interfaces/chat_react.UsePresenceListener.html#presenceData property available from the response of the @usePresence@ hook to view a list of all member's presence status in the room.

Expand Down
2 changes: 1 addition & 1 deletion content/chat/rooms/reactions.textile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ blang[react].
Subscribe to room reactions with the "@useRoomReactions@":https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/functions/chat_react.useRoomReactions.html hook. Supply an optional listener to receive the room reactions.

blang[swift].
Subscribe to a room reactions by creating a subscription. Use the @occupancy.subscribe(bufferingPolicy: .unbounded)@ method in a room to receive reactions:
Subscribe to a room reactions by creating a subscription. Use the @reactions.subscribe(bufferingPolicy: .unbounded)@ method in a room to receive reactions:

```[javascript]
const {unsubscribe} = room.reactions.subscribe((reaction) => {
Expand Down

0 comments on commit 9df13d7

Please sign in to comment.