Skip to content

Commit 82a992e

Browse files
fix(reactions): Fix reacting to people that left
Signed-off-by: Joas Schilling <[email protected]>
1 parent 9fc245f commit 82a992e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/integration/features/chat-2/reaction.feature

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,23 @@ Feature: chat-2/reaction
8484
| room | users | participant1 | participant1-displayname | user_added |
8585
| room | users | participant1 | participant1-displayname | conversation_created |
8686

87+
Scenario: React to message does not fail when the author left the conversation
88+
Given user "participant1" creates room "room" (v4)
89+
| roomType | 3 |
90+
| roomName | room |
91+
And user "participant1" adds user "participant2" to room "room" with 200 (v4)
92+
And user "participant2" sends message "Message 1" to room "room" with 201
93+
And user "participant2" removes themselves from room "room" with 200 (v4)
94+
And user "participant1" react with "👍" on message "Message 1" to room "room" with 201
95+
| actorType | actorId | actorDisplayName | reaction |
96+
| users | participant1 | participant1-displayname | 👍 |
97+
Then user "participant1" sees the following system messages in room "room" with 200
98+
| room | actorType | actorId | actorDisplayName | systemMessage |
99+
| room | users | participant1 | participant1-displayname | reaction |
100+
| room | users | participant2 | participant2-displayname | user_removed |
101+
| room | users | participant1 | participant1-displayname | user_added |
102+
| room | users | participant1 | participant1-displayname | conversation_created |
103+
87104
Scenario: Delete reaction to message with success
88105
Given user "participant1" creates room "room" (v4)
89106
| roomType | 3 |

0 commit comments

Comments
 (0)