Skip to content

Commit 9416188

Browse files
authored
Merge pull request #325 from ably/chat-add-message-reactions-delete-CHA-1005
Add chat message reaction delete spec point and rename add->send
2 parents ce22582 + d8e5310 commit 9416188

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

src/chat-features.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -942,13 +942,13 @@ property inside the `Messages` obejct. From the `Room` level:
942942

943943
<!-- -->
944944

945-
- `(CHA-MR4)` `[Testable]` Users should be able to send a reaction via
946-
the \`add\` method of the \`MessagesReactions\` object
947-
(`room.messages.reactions.add`).
948-
- `(CHA-MR4a)` `[Testable]` The \`add\` method accepts a message (or
945+
- `(CHA-MR4)` `[Testable]` Users should be able to send a reaction to a
946+
message via the \`send\` method of the \`MessagesReactions\` object
947+
(`room.messages.reactions.send`).
948+
- `(CHA-MR4a)` `[Testable]` The \`send\` method accepts a message (or
949949
message serial) as the first parameter to identify which message to
950950
react to.
951-
- `(CHA-MR4b)` `[Testable]` The \`add\` method accepts a \`params\`
951+
- `(CHA-MR4b)` `[Testable]` The \`send\` method accepts a \`params\`
952952
object as the second parameter with the following properties:
953953
- `(CHA-MR4b1)` `[Testable]` A \`name\` property (required)
954954
specifying the reaction identifier (e.g., emoji string).
@@ -961,6 +961,24 @@ property inside the `Messages` obejct. From the `Room` level:
961961

962962
<!-- -->
963963

964+
- `(CHA-MR11)` `[Testable]` Users should be able to delete a reaction
965+
from a message via the \`delete\` method of the \`MessagesReactions\`
966+
object (`room.messages.reactions.delete`).
967+
- `(CHA-MR11a)` `[Testable]` The \`delete\` method accepts a message
968+
(or message serial) as the first parameter to identify which message
969+
to delete the reaction from.
970+
- `(CHA-MR11b)` `[Testable]` The \`delete\` method accepts a
971+
\`params\` object as the second parameter with the following
972+
properties:
973+
- `(CHA-MR11b1)` `[Testable]` A \`name\` property specifying the
974+
reaction identifier (e.g., emoji string). It is required for all
975+
reaction types except for `Unique`.
976+
- `(CHA-MR11b2)` `[Testable]` A \`type\` property (optional)
977+
specifying the reaction type. If not provided, the default
978+
reaction type for the room is used.
979+
980+
<!-- -->
981+
964982
- `(CHA-MR5)` `[Testable]` Users may configure a default message
965983
reactions type for a room. This configuration is provided at the
966984
`RoomOptions.messages.defaultMessageReactionType` property, or

0 commit comments

Comments
 (0)