Skip to content

Commit

Permalink
fixup! feat(mentions): allow teams to be mentioned
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jan 29, 2025
1 parent f6c3b69 commit 8b96218
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/Service/ParticipantService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace OCA\Talk\Service;

use OCA\Circles\CirclesManager;
use OCA\Circles\Exceptions\CircleNotFoundException;
use OCA\Circles\Model\Circle;
use OCA\Circles\Model\Member;
use OCA\Talk\CachePrefix;
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -5232,7 +5232,4 @@ protected function assertStatusCode(ResponseInterface $response, int $statusCode
Assert::assertEquals($statusCode, $response->getStatusCode(), $message);
}
}



}
4 changes: 4 additions & 0 deletions tests/integration/features/chat-2/mentions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Feature: chat/mentions
| roomName | room |
And user "participant1" adds user "participant2" to room "group room" with 200 (v4)
And user "participant1" adds user "participant3" to room "group room" with 200 (v4)
And user "participant1" adds circle "1234" to the room "group room" with 200 (v4)
Then user "participant1" gets the following candidate mentions in room "group room" for "part" with 200
| id | label | source | mentionId |
| participant2 | participant2-displayname | users | participant2 |
Expand All @@ -91,6 +92,9 @@ Feature: chat/mentions
| id | label | source | mentionId |
| participant1 | participant1-displayname | users | participant1 |
| participant2 | participant2-displayname | users | participant2 |
And user "participant3" gets the following candidate mentions in room "group room" for "1234" with 200
| id | label | source | mentionId |
| 1234 | 1234 | teams | teams/1234 |

Scenario: get unmatched mentions in a group room
When user "participant1" creates room "group room" (v4)
Expand Down

0 comments on commit 8b96218

Please sign in to comment.